문제

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 consider?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top