private boolean makeReadOnly ( FileStatus file ) throws IOException { if ( isReadOnly ( file ) ) { return false ; } this . fileSystem . setPermission ( file . getPath ( ) , READONLY_PERMISSION ) ; log . debug ( "MakeReadOnly '{}'." , file . getPath ( ) ) ; return true ; }
Makes the file represented by the given FileStatus read - only .