/** * Sets directory to mode 700 if the directory is created */ @Override public boolean mkdir() { boolean rv = super.mkdir(); if (rv) setPerms(); return rv; }
/** * Sets directory to mode 700 if the directory is created * Does NOT change the mode of other created directories */ @Override public boolean mkdirs() { boolean rv = super.mkdirs(); if (rv) setPerms(); return rv; }