public static String getLocalFileOwner ( String filePath ) throws IOException { PosixFileAttributes attr = Files . readAttributes ( Paths . get ( filePath ) , PosixFileAttributes . class ) ; return attr . owner ( ) . getName ( ) ; }
Gets local file s owner .