Infinityd.StorageNode

Fields

Name

Type

Access

Description

identifier

str

r/w

name

str

r/w

type

Infinityd.StorageNodeType

r/w

Methods

class

list_free (node_list)

class

new_note (path, identifier)

class

new_subdirectory (path)

copy ()

free ()

Details

class Infinityd.StorageNode
classmethod list_free(node_list)
Parameters:

node_list ([Infinityd.StorageNode]) – A list of Infinityd.StorageNode objects.

Frees a singly-linked list of Infinityd.StorageNode as returned by Infinityd.Storage.read_subdirectory().

classmethod new_note(path, identifier)
Parameters:
  • path (str) – Path to the node.

  • identifier (str) – Identifier of the note type, for example ‘InfText’ for text notes.

Returns:

A new Infinityd.StorageNode.

Return type:

Infinityd.StorageNode

Creates a new Infinityd.StorageNode with type Infinityd.StorageNodeType.NOTE and the given path and identifier. This is most likely only going to be used by Infinityd.Storage implementations.

classmethod new_subdirectory(path)
Parameters:

path (str) – Path to the node.

Returns:

A new Infinityd.StorageNode.

Return type:

Infinityd.StorageNode

Creates a new Infinityd.StorageNode with type Infinityd.StorageNodeType.SUBDIRECTORY and the given path. This is most likely only going to be used by Infinityd.Storage implementations.

copy()
Returns:

A copy of self.

Return type:

Infinityd.StorageNode

Creates a copy of a Infinityd.StorageNode object.

free()

Frees a Infinityd.StorageNode allocated with Infinityd.StorageNode.new_subdirectory(), Infinityd.StorageNode.new_note() or Infinityd.StorageNode.copy().