Skip to main content

MAX_PATH_LENGTH

Constant MAX_PATH_LENGTH 

Source
pub const MAX_PATH_LENGTH: usize = 4096;
Expand description

Maximum length, in bytes, of a raw path string accepted at the FFI boundary. Shared by exarch-python and exarch-node. Maximum length, in bytes, of a raw path string accepted at the FFI boundary.

Linux and macOS define PATH_MAX as 4096 bytes. Bindings enforce the same ceiling on every platform so behavior does not vary by OS and pathological inputs are rejected before reaching the archive pipeline.