Amphp File Versions Save

An abstraction layer and non-blocking file access solution that keeps your application responsive.

v3.1.0

1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/amphp/file/compare/v3.0.2...v3.1.0

v3.0.2

5 months ago

What's Changed

  • Fixed detecting if a file is writing from the file mode when r+ (or similar) is used as the mode. (#77)
  • Fixed assertion failing during shutdown destruction of ParallelFilesystemDriver. (#81)

Full Changelog: https://github.com/amphp/file/compare/v3.0.1...v3.0.2

v3.0.1

10 months ago

What's Changed

  • Fix touch() on non-existent files in ext-uv and ext-eio by @kelunik (#73)
  • Fix write() truncation with ext-uv and ext-eio by @danog in (#76)

Full Changelog: https://github.com/amphp/file/compare/v3.0.0...v3.0.1

v3.0.0

1 year ago

Stable release compatible with AMPHP v3 and fibers! 🎉

As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

  • Renamed BlockingDriver to BlockingFilesystemDriver
  • Renamed EioDriver to EioFilesystemDriver
  • Renamed ParallelDriver to ParallelFilesystemDriver
  • Renamed StatusCachingDriver to StatusCachingFilesystemDriver
  • Renamed UvDriver to UvFilesystemDriver
  • Renamed Amp\File\Sync\AsyncFileMutex to Amp\File\FileMutex
  • Added ?Cancellation as first parameter of File::read()
  • Added File::isSeekable()
  • Removed File::SEEK_SET, File::SEEK_CUR, and File::SEEK_END
  • Added Amp\File\Whence for seeking instead

v3.0.0-beta.6

1 year ago
  • Fixed compatibility with v2.0 of amphp/byte-stream by updating File implementations to also implement Traversable.

v3.0.0-beta.5

1 year ago
  • Fixed PendingOperationError being thrown after several seek-then-write operations in UvFile and EioFile.

v3.0.0-beta.4

1 year ago
  • Added compatibility with Revolt v1.x
  • Fixed (removed) file truncation in append modes with ext-eio
  • Fixed tell behavior in blocking implementation for append modes
  • Fixed automatic closing of files with ext-uv
  • Fixed exception message in BlockingFilesystemDriver::write

v3.0.0-beta.3

1 year ago

v2.0.4

1 year ago

v3.0.0-beta.2

2 years ago
  • PHP 8.1 now required.
  • Update for Closable interface adding an onClose. All File objects now include an onClose method which can be used to attache a closure which will be invoked when the file is closed.