Skip to content

Releases: amphp/file

3.0.0 Beta 3

08 Sep 17:42
v3.0.0-beta.3
65a77cd
Compare
Choose a tag to compare
3.0.0 Beta 3 Pre-release
Pre-release
  • Fix createDirectoryRecursively with trailing slash with ext-uv / ext-eio (#70, #71)

2.0.4

08 Sep 17:25
v2.0.4
be639a9
Compare
Choose a tag to compare
  • Fix createDirectoryRecursively with trailing slash in async drivers (#70, #71)

3.0.0 Beta 2

03 Apr 17:58
v3.0.0-beta.2
ee8f10f
Compare
Choose a tag to compare
3.0.0 Beta 2 Pre-release
Pre-release
  • 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.

3.0.0 Beta 1

09 Feb 00:51
v3.0.0-beta.1
Compare
Choose a tag to compare
3.0.0 Beta 1 Pre-release
Pre-release
  • Support AMPHP v3 and fibers, removing the need for promises for return values
  • Changed File::write() return type from Promise<int> to void
  • Renamed Driver to FilesystemDriver
  • Renamed Amp\File\Sync\AsyncMutex to Amp\File\FileMutex

2.0.3

08 Feb 18:04
v2.0.3
Compare
Choose a tag to compare
  • Return written length in blocking and parallel drivers (#64)
    This makes BlockingFile and ParallelFile consistent with the other drivers and the documented return type. However, it's recommended to avoid relying on this return value, as these method will return void in the next major version.

2.0.2

24 Sep 19:09
3d3d084
Compare
Choose a tag to compare
  • Fix compatibility with ext-eio (#61)

2.0.1

12 Jul 20:24
v2.0.1
Compare
Choose a tag to compare
  • Fixed deprecation warning on PHP 8.1

2.0.0

21 Jun 20:24
v2.0.0
Compare
Choose a tag to compare
  • Added AsyncFileMutex (#43)
  • Improved driver consistency and reduced its API (#38)
  • Added functions: isSymlink
  • Renamed functions:
    • open → openFile
    • stat → getStatus
    • lstat → getLinkStatus
    • size → getSize
    • isdir → isDirectory
    • isfile → isFile
    • mtime → getModificationTime
    • atime → getAccessTime
    • ctime → getCreationTime
    • symlink → createSymlink
    • link → createHardlink
    • readlink → resolveSymlink
    • rename → move
    • unlink → deleteFile
    • rmdir → deleteDirectory
    • scandir → listFiles
    • chmod → changePermissions
    • chown → changeOwner ($uid and $gid accept null instead of -1 to ignore now)
    • get → read
    • put → write
    • mkdir → createDirectory / createDirectoryRecursively

Huge thanks to @enumag for this release!

1.0.2

14 Jul 15:48
54dcef2
Compare
Choose a tag to compare
  • Fixed compatibility with ext-uv@0.2.x (#46)

1.0.1

10 Jul 16:45
61dc93f
Compare
Choose a tag to compare
  • Added support for ext-uv@0.3.0
  • Improved error messages when using the blocking driver or parallel driver
  • Fixed link() function, previously was creating a symlink instead of a hard link (#37)
  • Skipped usage of EIO_O_FSYNC if undefined (#42)
  • Fixed export-ignore files for composer installs