↧
Answer by Mechanical snail for Number of free inodes on a partition...
This can be done using the statvfs system call. In Python (both 2 and 3), this can be accessed using os.statvfs. The call describes the filesystem containing the file/directory the path specifies.So to...
View ArticleNumber of free inodes on a partition containing a directory
I have a Python script running under Linux that generates huge numbers of tiny files into a given directory. However, many Linux filesystems like ext4 have a fixed number of inodes set at creation...
View Article