Class FileUtils


  • public final class FileUtils
    extends Object
    Utility Class for zosFiles related static helper methods.
    Version:
    2.0
    Author:
    Frank Giordano
    • Method Detail

      • validatePermission

        public static String validatePermission​(String value)
        Validate permission

        A valid permission is nine characters in three groups of three; they describe the permissions on the file or directory. The first group of 3 describes owner permissions; the second describes group permissions; the third describes other (or world) permissions.

        Each group contains a value of either r w x or -.

        Parameters:
        value - permission string
        Returns:
        same value string back to caller if valid