Class FileUtils


  • public final class FileUtils
    extends Object
    Utility class for UNIX (USS) related static helper methods.
    Version:
    5.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
      • validatePath

        public static String validatePath​(String value)
        Validate permission i.e. /xxx/xx/x
        Parameters:
        value - path string
        Returns:
        same value string back to caller if valid