Skip to main content

exists_sync

Checks if a file or directory exists at the specified path in a synchronous manner. It returns True if the path exists, and False otherwise.

def exists_sync(
path: str,
kwargs: Any
) - > bool

Checks if a file or directory exists at the specified path. This function is used to verify the presence of a resource before attempting further operations.

Parameters

NameTypeDescription
pathstrThe file system path to check for existence.
kwargsAnyAdditional keyword arguments passed to the underlying file system for path resolution or authentication.

Returns

TypeDescription
boolTrue if the path exists, False otherwise.