public static final String getOwner ( Path file ) throws IOException { if ( supports ( "posix" ) ) { UserPrincipal owner = ( UserPrincipal ) Files . getAttribute ( file , "posix:owner" ) ; return owner . getName ( ) ; } else { JavaLogging . getLogger ( PosixHelp . class ) . warning ( "no owner support. getOwner(%s) returns \"\"" , file ) ; return "" ; } }
Return linux file owner name . Or