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.StorageNodeobjects.
Frees a singly-linked list of
Infinityd.StorageNodeas returned byInfinityd.Storage.read_subdirectory().
- classmethod new_note(path, identifier)¶
- Parameters:
- Returns:
A new
Infinityd.StorageNode.- Return type:
Creates a new
Infinityd.StorageNodewith typeInfinityd.StorageNodeType.NOTEand the given path and identifier. This is most likely only going to be used byInfinityd.Storageimplementations.
- classmethod new_subdirectory(path)¶
- Parameters:
path (
str) – Path to the node.- Returns:
A new
Infinityd.StorageNode.- Return type:
Creates a new
Infinityd.StorageNodewith typeInfinityd.StorageNodeType.SUBDIRECTORYand the given path. This is most likely only going to be used byInfinityd.Storageimplementations.
- copy()¶
- Returns:
A copy of self.
- Return type:
Creates a copy of a
Infinityd.StorageNodeobject.
- free()¶
Frees a
Infinityd.StorageNodeallocated withInfinityd.StorageNode.new_subdirectory(),Infinityd.StorageNode.new_note() orInfinityd.StorageNode.copy().