Skip to main content

Module clients.sandbox.filesystem.file_info

Functions

file_info_from_api_object

def file_info_from_api_object(api_object: h2o_engine_manager.gen.model.v1_file_info.V1FileInfo) ‑> FileInfo

Classes

FileInfo

class FileInfo(path: str = '', size: int = 0, file_type: h2o_engine_manager.clients.sandbox.filesystem.file_type.FileType = FileType.FILE_TYPE_UNSPECIFIED, modify_time: Optional[datetime.datetime] = None, mode: str = '')

FileInfo contains metadata about a file or directory.

FileInfo represents metadata about a file or directory.

Args
path
The absolute path of the file or directory.
size
The size of the file in bytes. For directories, this is typically 0 or the size of the directory metadata.
file_type
The type of the filesystem entry (regular file, directory, or symlink).
modify_time
The last modification time of the file or directory (mtime).
mode
Unix file mode and permission bits in octal notation. Examples: "0644" (rw-r–r–), "0755" (rwxr-xr-x), "0777" (rwxrwxrwx).

Feedback