Re: How to get filesystem in python.

2020-01-17 Thread Cameron Simpson
On 17Jan2020 11:35, Antoon Pardon wrote: I would like to get the information given by the df command on linux/unix. I found the os.statvfs call, but it misses one thing: The filesystem. Does anyone know how to get that information. If you os.stat() the same thing you statvfs()ed you get an st

Re: How to get filesystem in python.

2020-01-17 Thread Python
Le 17/01/2020 à 11:35, Antoon Pardon a écrit : I would like to get the information given by the df command on linux/unix. I found the os.statvfs call, but it misses one thing: The filesystem. Does anyone know how to get that information. https://stackoverflow.com/questions/25283882/determinin

Re: How to get filesystem in python.

2020-01-17 Thread Cousin Stanley
Antoon Pardon wrote: > I would like to get the information given by the df command on linux/unix. > I found the os.statvfs call, but it misses one thing: The filesystem. > > Does anyone know how to get that information. > import os pipe_in = os.popen( 'df -h -T -x tmpfs -x devtmpfs' ) lis