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

94 Commits

Author SHA1 Message Date
Niklas Keller
8ced3f0d17 Try to fix some more tests on Windows 2022-02-08 22:43:53 +01:00
Niklas Keller
a2328098e9 Try to fix some more tests on Windows 2022-02-08 22:38:50 +01:00
Niklas Keller
067229676b Fix return type 2022-02-08 22:06:40 +01:00
Niklas Keller
58d738fae6 Fix some tests on Windows 2022-02-08 22:04:15 +01:00
Niklas Keller
1eba16a584 Skip link loops on Windows 2022-02-08 21:42:35 +01:00
Niklas Keller
42c378130e Rename Sync\AsyncFileMutex → FileMutex 2022-02-08 19:52:03 +01:00
Niklas Keller
c9e30f5687 Rename Driver → FilesystemDriver 2022-02-08 19:49:16 +01:00
Aaron Piotrowski
dad4f97100
Update for further dependency changes 2022-02-07 19:31:21 -06:00
Aaron Piotrowski
858c2a46fc
Update for amphp/parallel changes 2021-12-22 17:23:01 -06:00
Niklas Keller
c46262eff3 Update for beta changes 2021-12-22 22:54:20 +01:00
Bob Weinand
a15f524472 Update for recent renames 2021-12-04 15:23:37 +01:00
Aaron Piotrowski
3513e8fee2
Add isClosed 2021-11-21 22:55:15 -06:00
Aaron Piotrowski
b2b263092e
Update for stream changes and coroutine to launch rename 2021-11-21 13:12:23 -06:00
Aaron Piotrowski
742d9303d0
Use Revolt and update for Amp changes 2021-10-16 00:04:27 -05:00
Aaron Piotrowski
3e012f9e78
Refactor for Amp v3 2020-10-22 00:35:54 -05:00
Niklas Keller
cfc330afcc Fix code style 2020-10-21 23:27:24 +02:00
Niklas Keller
8ed01f294a Clear stat cache in Fixture 2020-10-21 23:17:22 +02:00
Niklas Keller
2162e7dc48 Rework stat cache to use a decorator 2020-10-21 22:52:43 +02:00
Niklas Keller
3983198322 Forward global functions to Filesystem 2020-10-21 21:04:52 +02:00
Aaron Piotrowski
701e1c974e
Forgot Eio tests 2020-07-06 13:28:39 -05:00
Niklas Keller
c0bdd0f55b Fix watcher error 2020-07-01 07:23:23 +02:00
Niklas Keller
06f40308da Make UvPoll depend on passed driver, fix code style 2020-07-01 06:19:09 +02:00
Niklas Keller
82c1f039ad Fix EioDriverTest 2020-06-30 21:49:55 +02:00
Niklas Keller
8d949a9eae Redesign Driver API 2020-06-30 21:45:09 +02:00
Niklas Keller
781eb9c88e Improve method names in Driver 2020-06-24 22:00:24 +02:00
Jáchym Toušek
0ed53c601e
Make drivers more consistent / reduce driver API (#38)
Co-authored-by: Niklas Keller <me@kelunik.com>
2020-06-23 22:40:48 +02:00
Jáchym Toušek
289a723d5e
Add AsyncFileMutex (#43) 2020-05-02 11:14:21 +02:00
Jáchym Toušek
6a506de7ad
Fix UvDriver (#46) 2020-05-02 09:39:57 +02:00
Aaron Piotrowski
8b4a36802d
Fix async file test 2020-02-21 13:12:48 -06:00
Aaron Piotrowski
ae97b95e3e
Support ext-uv 0.3.0 2020-02-21 13:05:03 -06:00
Aaron Piotrowski
28bdce091e
Rename Handle to File
Handle interface still provided for backward compatibility.
2019-08-23 14:47:03 -05:00
Aaron Piotrowski
660e0068d1
Refactor tests for AsyncTestCase 2019-08-23 13:59:26 -05:00
Aaron Piotrowski
6f11e413e9
Update tests for PHPUnit deprecations 2019-08-23 13:23:33 -05:00
Aaron Piotrowski
1bce4b075d
Upgrade to PHP 7.1 and update dependencies 2019-08-23 13:00:26 -05:00
Aaron Piotrowski
654596edeb
Fix UV writing in append mode 2019-03-01 10:38:57 -06:00
Aaron Piotrowski
94f772bd7a
Quiet style fixer 2019-01-07 11:38:45 -06:00
Aaron Piotrowski
94c3bb631c
Avoid warning when writing an empty string with eio
No warning emitted from uv, but there's also no reason to call uv_fs_write().
2019-01-07 11:32:42 -06:00
Aaron Piotrowski
8cfe851cd2
Add truncate() to Handle
Addresses #32.
2018-10-28 23:55:11 -05:00
Aaron Piotrowski
76cdea9af7
Use shared style defintions; update styles 2018-10-27 10:57:31 -05:00
Andrew Mackrodt
fa9534a038 Fixes EioDriver and UvDriver readlink implementation 2018-10-27 10:45:28 -05:00
Andrew Mackrodt
3e5da2b245 Fixes invalid stat result in UvDriver 2018-10-27 10:44:01 -05:00
Manuele Menozzi
ed5495f084 Fixes wrong mkdir default mode 2018-03-15 18:35:10 +01:00
Aaron Piotrowski
fb58fe8dd5
Update to amphp/parallel 0.2 2017-12-14 22:36:16 -06:00
eugene kirillov
b67c83752c Add optional time parameters to touch function (#22) 2017-11-22 20:55:30 -06:00
Aaron Piotrowski
5bac9ec725
Fix eof logic and remove seek tests for ParallelHandle 2017-07-06 16:51:20 -05:00
Niklas Keller
8b43826073 Ignore double close 2017-06-21 14:07:49 +02:00
Niklas Keller
a13bb6f721 Use ClosedException as mandated by the ByteStream interfaces
This commit also changes end() to wait for the close() to finish before returning.
2017-06-21 11:01:19 +02:00
Niklas Keller
2eb8eb7662 Clean up execute for tests 2017-06-20 19:37:41 +02:00
Niklas Keller
4cccc8d0f7 Ensure reads resolve to null on EOF, fixes #13 2017-06-20 18:25:37 +02:00
Niklas Keller
a8048dcc60 Don't yield first write in testWrite 2017-06-20 07:58:30 +02:00