G
George Sakkis
Hi all,
I started writing a module to reproduce Gnu-find functionality in python (as
far as I know, there's not one available; pyfind
(http://www.anti-particle.com/pyfind.shtml) seems a bit relevant from it's
webpage, though most links there are broken - also it's more of a standalone
GUI tool than a reusable module). Some questions I have for now:
- How can one get the filesystem name from python (e.g. for testing
'find -fstype nfs') ?
- Does os.readlink perform a call to os.stat or os.lstat (or the equivalent
C system calls) ? If yes, I would like to rewrite it for the case the stat
info for a file has already been cached.
- Before I write it from scratch, is there a converter for Unix permission
strings (like "+go=rw") to numeric modes ?
Thanks,
George
I started writing a module to reproduce Gnu-find functionality in python (as
far as I know, there's not one available; pyfind
(http://www.anti-particle.com/pyfind.shtml) seems a bit relevant from it's
webpage, though most links there are broken - also it's more of a standalone
GUI tool than a reusable module). Some questions I have for now:
- How can one get the filesystem name from python (e.g. for testing
'find -fstype nfs') ?
- Does os.readlink perform a call to os.stat or os.lstat (or the equivalent
C system calls) ? If yes, I would like to rewrite it for the case the stat
info for a file has already been cached.
- Before I write it from scratch, is there a converter for Unix permission
strings (like "+go=rw") to numeric modes ?
Thanks,
George