videosphere
    Preparing search index...

    Function isValidSmbRemotePath

    • Returns whether remotePath is a safe directory path within an SMB share. Accepts empty string (share root), /, or paths starting with / or \ without . / .. segments.

      Parameters

      • remotePath: string

        Candidate remote directory path.

      Returns boolean

      True when the path is allowed.