videosphere
    Preparing search index...

    Function isValidSftpRemotePath

    • Returns whether remotePath is a safe absolute POSIX directory for SFTP backups. Rejects backslashes and . / .. path segments.

      Parameters

      • remotePath: string

        Candidate remote directory path.

      Returns boolean

      True when the path is allowed.