Re: Enhanced dir() function
- Posted by Shawn Pringle <shawn.pringle at gmail.?o?> May 01, 2008
- 585 views
Marco Achury wrote: > > > Linux users currently only get info about 'd' attrib, > they would like to get a unix style chmod sequence like: > > "drwxr-x---" > > In this case the position of the char changes the sense. The character 'r' is documented as readonly in the dir() documentation. It would be trivial to give 'r' to the Linux community by testing if the current process has write access. It leads to cleaner looking code for dir() to provide the same interface regardless of platform. On the other hand, if you name your function to something new like folder_list(), then you can design any interface you like and you can set positional flags that are peclular to all the filesystems you will likely use: ext2, vfat, ntfs, and reiser. Shawn Pringle