private static String fileStatusToString ( FileStatus stat ) { assert stat != null ; return String . format ( "path: %s, isDir: %s, len: %d, owner: %s" , stat . getPath ( ) . toString ( ) , stat . isDir ( ) , stat . getLen ( ) , stat . getOwner ( ) ) ; }
Converts the given FileStatus to its string representation .