[Mono-list] How to get file information on Linux?
cocowalla
colin.anderson333 at gmail.com
Mon Mar 3 14:08:40 UTC 2014
I want to get various bits of information about files on Linux systems.
In particular, I want to get file attributes, file permissions, owner and
whether the file is an actual file or a link of some type.
In Windows I would use FileInfo.Attributes to get file attributes - but this
just returns FileAttributes.Normal on Linux, even though the lsattr command
reports ----ia-------e-- (for example).
In Windows I would use FileSecurity to get the owner and file permissions -
but this throws with PlatformNotSupportedException on Linux.
--
View this message in context: http://mono.1490590.n4.nabble.com/How-to-get-file-information-on-Linux-tp4662093.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list