Skip to main content

Module fs_util

Module fs_util 

Source
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 source to destination without copying metadata.
validate_write_target
Validates that target resolves within expected_parent and is not itself a symlink.