filesystem_models
LucidLink Python Library - Filesystem Type Definitions
Types for filesystem entries, sizes, and statistics.
lucidlink.filesystem_models.DirEntry
Represents a file or directory entry in the filesystem.
Returned by Filesystem.read_dir() and Filesystem.get_entry().
Attribute | Type | Description |
|---|---|---|
|
| Name of the file/directory (without path). |
|
| Size in bytes (0 for directories). |
|
| Entry type string ("file", "dir", "link", "unknown"). |
|
| Unique file identifier. |
|
| External file identifier. |
|
| Creation time (Unix timestamp). |
|
| Last modification time (Unix timestamp). |
name
Type
strDescription
Name of the file/directory (without path).
size
Type
intDescription
Size in bytes (0 for directories).
type
Type
strDescription
Entry type string ("file", "dir", "link", "unknown").
file_id
Type
strDescription
Unique file identifier.
file_id_external
Type
intDescription
External file identifier.
ctime
Type
intDescription
Creation time (Unix timestamp).
mtime
Type
intDescription
Last modification time (Unix timestamp).
is_dir() -> bool
Check if this entry is a directory.
is_file() -> bool
Check if this entry is a regular file.
is_link() -> bool
Check if this entry is a symbolic link.
lucidlink.filesystem_models.FilespaceSize
Filespace size information.
Returned by Filesystem.get_size().
Attribute | Type | Description |
|---|---|---|
|
| Size of metadata entries in bytes. |
|
| Size of file data in bytes. |
|
| Total storage used in bytes. |
|
| Size of external (Connect) files in bytes. |
|
| Number of external (Connect) files. |
entries
Type
intDescription
Size of metadata entries in bytes.
data
Type
intDescription
Size of file data in bytes.
storage
Type
intDescription
Total storage used in bytes.
external_files_size
Type
intDescription
Size of external (Connect) files in bytes.
external_files_count
Type
intDescription
Number of external (Connect) files.
lucidlink.filesystem_models.FilespaceStatistics
Filespace statistics.
Returned by Filesystem.get_statistics().
Attribute | Type | Description |
|---|---|---|
|
| Number of files in the filespace. |
|
| Number of directories in the filespace. |
|
| Number of symbolic links in the filespace. |
|
| Size of metadata entries in bytes. |
|
| Size of file data in bytes. |
|
| Total storage used in bytes. |
|
| Size of external (Connect) files in bytes. |
|
| Number of external (Connect) files. |
file_count
Type
intDescription
Number of files in the filespace.
directory_count
Type
intDescription
Number of directories in the filespace.
symlink_count
Type
intDescription
Number of symbolic links in the filespace.
entries_size
Type
intDescription
Size of metadata entries in bytes.
data_size
Type
intDescription
Size of file data in bytes.
storage_size
Type
intDescription
Total storage used in bytes.
external_files_size
Type
intDescription
Size of external (Connect) files in bytes.
external_files_count
Type
intDescription
Number of external (Connect) files.