开发者

Read/Write a file from/to network folder/share using Python?

开发者 https://www.devze.com 2022-12-24 20:37 出处:网络
How to Write/Read a file to/from a network folder/share using python? The application will run under Linux and network folder/share can be a Linux/Windows System.

How to Write/Read a file to/from a network folder/share using python? The application will run under Linux and network folder/share can be a Linux/Windows System.

Also, how to check that network folder/share has enough space before writing a file?

What things should i c开发者_高级运维onsider?


Mount the shares using Samba, check the free space on the share using df or os.statvfs and read/write to it like any other folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消