Node.ext.fs

Latest version: v1.1

Safety actively analyzes 688917 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.2

----------------

- Nothing changed yet.

1.1

----------------

- Introduce ``node.ext.fs.interfaces.IDirectory.rename`` and implement in
``node.ext.fs.directory.DirectoryStorage``.
[rnix]

- Do not allow setting and deleting of directory children defined in
``ignores``.
[rnix]

1.0

----------------

- Subclass ``threading.local`` for
``node.ext.fs.directory._directory_context`` objects in order to safely
provide default values.
[rnix]

- Introduce ``IFileIO`` interface and ``FileIO`` plumbing behavior.
[rnix]

- Introduce ``IFileNode`` interface.
[rnix]

- Pass ``name`` and ``parent`` to default file and directory factories.
[rnix]

- ``DirectoryStorage`` accepts ``fs_path`` keyword argument.
[rnix]

- Rename ``_FSModeMixin`` plumbing behavior to ``FSMode``. Setting the actual
file mode is now done by plumbing ``__call__`` function.
[rnix]

- Introduce ``FSLocation`` plumbing behavior.
[rnix]

**Breaking Changes**

- Package has been renamed from ``node.ext.directory`` to ``node.ext.fs``.
There are too many breaking changes for a sane deprecation path.
[rnix]

- ``DirectoryStorage.__init__`` no longer accepts deprecated ``backup`` keyword
argument.
[rnix]

- ``DirectoryStorage.child_directory_factory`` has been renamed to
``default_directory_factory``
[rnix]

- ``DirectoryStorage`` derives from ``node.behaviors.WildcardFactory`` now.
Own factory pattern logic working with file endings has been removed.
Patterns must be adopted.
[rnix]

- Remove global ``file_factories`` and ``DirectoryStorage.file_factories``.
Wildcard pattern related factories are defined via
``DirectoryStorage.factories`` now.
[rnix]

- Remove ``IFileAddedEvent`` and ``node.ext.fs.events`` module. If you need
lifecycle events, use ``node.behaviors.Lifecycle`` instead.
[rnix]

- Basic ``File`` and ``Directory`` objects no longer use referencing related
plumbung behaviors. You need to define your own base objects plumbing
``INodeReference`` implemeting behaviors.
[rnix]

- Reduce ``IFile`` interface. It no longer inherits from ``ILeaf`` and default
file implementation related attributes were moved to ``IFileNode`` interface.
This way it is possible to implement very custom file implementations without
breaking the interface contract.
[rnix]

- Rename ``FileStorage`` to ``FileNode``. It no longer inherits from
``DictStorage``. Further file data is no longer kept in memory unless it
changes, then it's kept until it gets written to disk.
[rnix]

- ``FileNode`` and ``DirectoryStorage`` not inherits from
``_FSModeMixin`` respective now ``FSMode`` behavior any more. ``FSMode``
behavior must be applied explicit on nodes which should provide this
behavior.
[rnix]

- Rename ``_fs_path`` helper function to ``get_fs_path``.
[rnix]

- Rename ``_fs_mode`` helper function to ``get_fs_mode``.
[rnix]

0.8

----------------

- Replace deprecated use of ``Nodify`` by ``MappingNode``.
[rnix]

- Replace deprecated use of ``Adopt`` by ``MappingAdopt``.
[rnix]

0.7

---

- Python 3 support.
[rnix, 2017-06-06]

- ``fs_mode`` is read from filesystem if file or directory exists and
fs_mode not set explicitely.
[rnix, 2017-06-06]

- Remove ``backup`` option from ``IDirectory`` interface. It never really
worked properly and conceptually ``IDirectory`` is the wrong place for
handling backups of files.
[rnix, 2017-06-04]

0.6

---

- Introduce ``node.ext.directory.interfaces.IFile.direct_sync`` setting.
[rnix, 2017-01-30]

- Complete ``node.ext.directory.interfaces.IFile`` and
``node.ext.directory.interfaces.IDirectory`` to reflect implemented features.
[rnix, 2017-01-30]

- Move ``node.ext.directory.directory.MODE_TEXT`` and
``node.ext.directory.directory.MODE_BINARY`` to
``node.ext.directory.interfaces``.
[rnix, 2017-01-30]

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.