/** * Applies the default umask for newly created directories to this mode. * * @param mode the mode to update * @param authUmask the umask to apply on the directory * @return the updated object */ public static Mode applyDirectoryUMask(Mode mode, String authUmask) { return applyUMask(mode, getUMask(authUmask)); }
/** * Applies the default umask for newly created files to this mode. * * @param mode the mode to update * @param authUmask the umask to apply on the file * @return the updated object */ public static Mode applyFileUMask(Mode mode, String authUmask) { mode = applyUMask(mode, getUMask(authUmask)); mode = applyUMask(mode, FILE_UMASK); return mode; }