Function flagToMode

  • Parses a flag as a mode (W_OK, R_OK, and/or X_OK)

    Parameters

    • flag: string

      the flag to parse

    Returns number