Infinityd.StorageNode¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
identifier |
r/w |
||
name |
r/w |
||
type |
r/w |
Methods¶
class |
|
class |
|
class |
|
|
|
|
Details¶
- class Infinityd.StorageNode¶
- classmethod list_free(node_list)¶
- Parameters:
node_list ([
Infinityd.StorageNode
]) – A list ofInfinityd.StorageNode
objects.
Frees a singly-linked list of
Infinityd.StorageNode
as returned byInfinityd.Storage.read_subdirectory
().
- classmethod new_note(path, identifier)¶
- Parameters:
- Returns:
A new
Infinityd.StorageNode
.- Return type:
Creates a new
Infinityd.StorageNode
with typeInfinityd.StorageNodeType.NOTE
and the given path and identifier. This is most likely only going to be used byInfinityd.Storage
implementations.
- classmethod new_subdirectory(path)¶
- Parameters:
path (
str
) – Path to the node.- Returns:
A new
Infinityd.StorageNode
.- Return type:
Creates a new
Infinityd.StorageNode
with typeInfinityd.StorageNodeType.SUBDIRECTORY
and the given path. This is most likely only going to be used byInfinityd.Storage
implementations.
- copy()¶
- Returns:
A copy of self.
- Return type:
Creates a copy of a
Infinityd.StorageNode
object.
- free()¶
Frees a
Infinityd.StorageNode
allocated withInfinityd.StorageNode.new_subdirectory
(),Infinityd.StorageNode.new_note
() orInfinityd.StorageNode.copy
().