• Post Reply Bookmark Topic Watch Topic
  • New Topic

Finding owner/group of a File  RSS feed

 
R Joshi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to find the owner of a file or the group that file belongs to using Java. I don't see any file attribute which has that information.


I guess it is similar to the question at the following link
http://www.coderanch.com/t/277933/Streams/java/we-file-Inode-info-java
 
Kristian Perkins
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is no way other than through JNI or parsing the output from a shell command through ProcessBuilder class or Runtime.exec() method.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!