nuxed/filesystem

Nuxed Filesystem

Installs: 1 157

Dependents: 4

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Language:Hack

v2.0.0 2020-11-15 17:41 UTC

This package is auto-updated.

Last update: 2022-11-22 03:24:57 UTC


README

45311177?s=200&v=4

Coding standards status Static analysis status Unit tests status Total Downloads Latest Stable Version License

Nuxed Filesystem

The Nuxed Filesystem component provides classes that interact with the local filesystem. Specialized classes can be used to read data, write data, alter permissions, rename files, copy, create, delete, move, traverse, and many more through an easy to use interface.

Installation

This package can be installed with Composer.

$ composer require nuxed/filesystem

Example

use namespace Nuxed\Filesystem;

<<__EntryPoint>>
async function main(): Awaitable<void> {
  $file = new Filesystem\File('file.txt');
  await $file->create(0755);

  $file->write('Hello, World!');

  print await $file->read(5); // Hello

  $parent = $file->parent();
  await $parent->flush();

  $file->exists(); // false
}

Security

For information on reporting security vulnerabilities in Nuxed, see SECURITY.md.

License

Nuxed is open-sourced software licensed under the MIT-licensed.