Finding File Owner Settings

Hi,

I'm writing a file explorer and am trying to display info about the files. I can display filename, filetype, size, lastmodified, and read and write permissions, but I can't find anything on retrieving info about who owns a file. Does anyone know any way to retrieve the owner info?

Thanks,

Randy

[333 byte] By [fulara] at [2007-9-26 4:12:48]
# 1

hi,

This won't be that easy because therefore you would have to create platform-specific code which accesses the operating system's methods. Java is platform-independent and therefore can only provide common / usual information on the running operating system. I.e. MS Windows does not provide such information (at least not in all versions and therefore the native code wouldn't work). That is why this information is not (yet?) provided by the standard Java API and I'd highly recommend not to create native code unless you are absolutely sure that your application will only run under an OS that is capable of executing this code.

best regards, Michael

Michael_Rudolf at 2007-6-29 13:18:57 > top of Java-index,Archived Forums,Java Programming...