fluentfs.paths.paths.dir_exists

fluentfs.paths.paths.dir_exists(path: str) bool

Check whether a directory is present at the given path.

Note that the behaviour of dir_exists is different from os.path.isdir since dir_exists returns False if path represents a symbol link (unlike os.path.isdir which will return True in this case).

Parameters:

path – The given path.

Returns:

True, if a directory is present. False if no file-like object is present at the given path at all or if the path represents a (regular) file.