pynyaasi.client.directory¶
DirectoryTreeNode¶
-
class
pynyaasi.client.directory.DirectoryTreeNode(name: str, is_folder: bool)[source]¶ Represents a node in a directory tree structure.
- Parameters:
name (str) – The name of the node.
is_folder (bool) – Indicates if the node is a folder.
- Variables:
-
__init__(name: str, is_folder: bool)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
property
is_folder¶ Check if the node is a folder.
- Returns:
True if the node is a folder, False if it’s a file.
- Return type:
bool
-
property
name¶ Get the name of the node.
- Returns:
The name of the node.
- Return type:
str
Directory¶
-
class
pynyaasi.client.directory.Directory(name, children: List[pynyaasi.client.directory.DirectoryTreeNode])[source]¶ Represents a directory in a directory tree structure.
- Parameters:
name (str) – The name of the directory.
children (List[DirectoryTreeNode]) – A list of child nodes.
- Variables:
name (str) – The name of the directory.
children (List[DirectoryTreeNode]) – A list of child nodes.
-
__eq__(other)¶ Return self==value.
-
__hash__()¶ Return hash(self).
-
__init__(name, children: List[pynyaasi.client.directory.DirectoryTreeNode])[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
__repr__()¶ Return repr(self).
-
__str__()¶ Return str(self).
-
property
is_folder¶ Check if the node is a folder.
- Returns:
True if the node is a folder, False if it’s a file.
- Return type:
bool
-
property
name¶ Get the name of the node.
- Returns:
The name of the node.
- Return type:
str
File¶
-
class
pynyaasi.client.directory.File(name, size_raw: str)[source]¶ Represents a file in a directory tree structure.
- Parameters:
name (str) – The name of the file.
size_raw (str) – The raw size of the file.
- Variables:
name (str) – The name of the file.
size_raw (str) – The raw size of the file.
-
__eq__(other)¶ Return self==value.
-
__hash__()¶ Return hash(self).
-
__init__(name, size_raw: str)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
__repr__()¶ Return repr(self).
-
__str__()¶ Return str(self).
-
property
is_folder¶ Check if the node is a folder.
- Returns:
True if the node is a folder, False if it’s a file.
- Return type:
bool
-
property
name¶ Get the name of the node.
- Returns:
The name of the node.
- Return type:
str