fluentfs.paths.paths.file_like_kind

fluentfs.paths.paths.file_like_kind(path: str) FileLikeKind

Get the kind of file-like object present at the given path.

If no file-like object is present at the given path, a FluentFsException is raised.

Parameters:

path – The given path.

Returns:

FileKind.DIR if a directory is present, FileKind.FILE if a (regular) file is present and FileKind.SYMLINK if a symbolic link is present.