1
0
mirror of https://github.com/danog/file.git synced 2024-12-02 09:17:57 +01:00
Commit Graph

339 Commits

Author SHA1 Message Date
4b234c63a3 Bump 2024-09-02 16:48:40 +02:00
8041a2b428 Bump 2024-09-02 16:48:06 +02:00
600acf5474 Merge 2024-05-31 11:06:20 +02:00
Aaron Piotrowski
be1e245740
Add UVLoop to whitelist 2024-05-24 18:40:25 -05:00
Aaron Piotrowski
0453021eef
Drop support for ext-uv 0.2.x
Fixed detection of uv being used as the event loop driver when wrapped with a delegate driver (e.g., TracingDriver).
2024-05-24 18:33:40 -05:00
Aaron Piotrowski
1d51235bd8
Build on PHP 8.4 2024-04-21 09:53:24 -05:00
Aaron Piotrowski
72f6071616
Fix implicit nullable parameters 2024-04-21 09:47:27 -05:00
Aaron Piotrowski
6b82161f20
Add optional cancellation arg 2024-03-16 11:10:58 -05:00
Aaron Piotrowski
d5f6c81e51
Style fix 2024-03-11 19:38:57 -05:00
Aaron Piotrowski
22d64fb6dd
Update readme 2024-03-11 19:25:56 -05:00
Aaron Piotrowski
d0513ece41
Exponential backoff attempting to obtain file lock 2024-03-11 19:25:49 -05:00
Bob Weinand
503c1b5c0a
Add KeyedFileMutex (#62)
* Add KeyedFileMutex

* Rebase and update

* Style fix

* Swap prefix for directory

---------

Co-authored-by: Aaron Piotrowski <aaron@trowski.com>
2024-03-10 23:06:03 -05:00
Aaron Piotrowski
0bc3e2d251
Add Filesystem arg to FileMutex 2024-03-09 10:05:11 -06:00
Aaron Piotrowski
8e063788e8
Spaces 2024-03-09 09:55:08 -06:00
Nadyita
1eca93a87e
Add the promised FileCache class (#83) 2024-03-09 09:49:22 -06:00
Aaron Piotrowski
1f1f8712da
Update Psalm 2024-03-09 09:18:09 -06:00
Aaron Piotrowski
45d8d84c44
Fix detecting writable from mode
Closes #77.
2023-12-27 16:52:04 -06:00
Aaron Piotrowski
0e9dd5e274
Update CI extension installs 2023-12-27 16:51:17 -06:00
Aaron Piotrowski
778354d401
Check if worker is in storage to avoid destruct issue 2023-12-27 15:42:16 -06:00
c37be07347 Release mutex if process is killed 2023-12-09 15:09:40 +01:00
Niklas Keller
4dd0879884
Rework documentation structure 2023-08-18 20:19:11 +02:00
Niklas Keller
efeb737b1f
Fix touch on non-existent files in uv / eio drivers
Fixes #73.
2023-07-23 20:54:06 +02:00
c2313ea280
Fix write() truncation with ext-uv and ext-eio (#76) 2023-07-23 20:06:15 +02:00
Niklas Keller
1c9f0ebdb2
Drop revolt 0.2 2023-03-02 23:29:08 +01:00
Niklas Keller
436d6f31d0
Require amphp/parallel 2.1 2023-03-02 23:27:30 +01:00
Niklas Keller
b98d205a91
Replace promise with future 2023-03-02 22:50:39 +01:00
Niklas Keller
83d8532926
Add stream example 2023-03-02 22:25:46 +01:00
Niklas Keller
9289bd209f
Use actions/checkout v3 2023-03-02 21:41:27 +01:00
Niklas Keller
b729e5f25a
Remove usage of deprecated ::set-output 2023-03-02 21:39:00 +01:00
Niklas Keller
860b529714
Disable psalm on PHP 8.3 2023-03-02 21:32:13 +01:00
Niklas Keller
382e0a9d61
Improve CI setup 2023-03-02 21:22:29 +01:00
Niklas Keller
d3725f46d2
Update LICENSE year 2023-03-02 21:03:24 +01:00
Aaron Piotrowski
296293a65e
Fix wrong method being called for test tear down 2023-02-24 19:16:12 -06:00
Niklas Keller
8d36700b5d
Fix code style 2023-02-23 20:34:09 +01:00
Niklas Keller
7ac668368d
Turn whence into an enum 2023-02-23 20:30:43 +01:00
Niklas Keller
7fa2eb02c1
Try to avoid lsof warning on macOS on GitHub actions 2023-02-18 17:48:17 +01:00
Niklas Keller
b8e3314417
Don't fail if directory exists on recursive creation 2023-02-18 17:32:06 +01:00
Niklas Keller
a631384d3e
Test createDirectoryRecursively on existing directory 2023-02-18 17:18:21 +01:00
Niklas Keller
aed7cf8ad3
Remove old branch alias 2023-02-18 16:54:35 +01:00
Aaron Piotrowski
de1f4c1e08
Update for amphp/parallel v2.0 2023-02-18 09:49:06 -06:00
Aaron Piotrowski
bac8157738
Upgrade to Psalm 5.4 2023-01-08 10:17:52 -06:00
Aaron Piotrowski
dc2bc3f982
Make better use of BlockingFilesystemDriver in FileTask 2023-01-08 10:17:37 -06:00
Aaron Piotrowski
47277f7f16
Make further use of PHP 8.1 features 2023-01-08 10:16:49 -06:00
Aaron Piotrowski
db002ce874
Compatibility with iterable readable streams 2023-01-08 00:13:11 -06:00
Aaron Piotrowski
f4bd0dff96
Declare strict types 2022-12-17 15:52:21 -06:00
Aaron Piotrowski
1dfa6454e9
Fix filesize after write in ParallelFile 2022-11-23 14:46:07 -06:00
Aaron Piotrowski
a86be72957
Fix writable flag if opened in read-only mode 2022-11-20 10:40:40 -06:00
Aaron Piotrowski
91505b49e7
Await pending writes before closing 2022-11-20 10:39:47 -06:00
Aaron Piotrowski
d68ac6dc4f
Extract common code from UvFile and EioFile into an internal abstract class 2022-11-18 11:48:43 -06:00
Aaron Piotrowski
cce4422d0d
Improve pending op handling in UvFile and EioFile 2022-11-17 18:54:46 -06:00