Returns whether remotePath is a safe directory path within an SMB share. Accepts empty string (share root), /, or paths starting with / or \ without . / .. segments.
remotePath
/
\
.
..
Candidate remote directory path.
True when the path is allowed.
Returns whether
remotePathis a safe directory path within an SMB share. Accepts empty string (share root),/, or paths starting with/or\without./..segments.