nuXed/filesystem

Nuxed 文件系统

安装数: 1,157

依赖项: 4

建议者: 0

安全性: 0

星标: 3

关注者: 3

分支: 1

公开问题: 0

语言:Hack

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

This package is auto-updated.

Last update: 2024-09-22 07:28:21 UTC


README

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

Nuxed 文件系统

Nuxed 文件系统组件提供了与本地文件系统交互的类。可以通过易于使用的接口使用专用类来读取数据、写入数据、更改权限、重命名文件、复制、创建、删除、移动、遍历等等。

安装

此包可以使用 Composer 安装。

$ composer require nuxed/filesystem

示例

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
}

安全性

有关报告 Nuxed 中的安全漏洞的信息,请参阅 SECURITY.md

许可证

nuXed 是开源软件,许可协议为 MIT 许可。