Skip to content

Instantly share code, notes, and snippets.

@yongboy
Created April 24, 2012 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yongboy/2477544 to your computer and use it in GitHub Desktop.
Save yongboy/2477544 to your computer and use it in GitHub Desktop.
FileUtil.java
......
private static void checkReturnValue(boolean rv, File p,
FsPermission permission
) throws IOException {
/**
if (!rv) {
throw new IOException("Failed to set permissions of path: " + p +
" to " +
String.format("%04o", permission.toShort()));
}
**/
}
......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment