Expand description
Utility functions for filesystem operations with CIFS compatibility.
Provides helpers to perform file copy operations that avoid POSIX metadata copy which may not be supported on CIFS (SMB) filesystems.
Functionsยง
- atomic_
create_ file - Atomically creates a new file at
path, failing if it already exists. - check_
file_ size - Checks that a file does not exceed the specified size limit.
- copy_
file_ cifs_ safe - Copies file contents from
sourcetodestinationwithout copying metadata. - validate_
write_ target - Validates that
targetresolves withinexpected_parentand is not itself a symlink.