fix(fs): Improve waitForFileToBeReady function to handle directories and file stabilization

This commit is contained in:
2025-01-07 04:58:31 +01:00
parent be011a4637
commit e6b8240031
3 changed files with 138 additions and 55 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2025-01-07 - 11.1.5 - fix(fs)
Improve waitForFileToBeReady function to handle directories and file stabilization
- Enhanced the waitForFileToBeReady to handle directory paths by checking for file existence within directories and waiting for stabilization.
- Modified the watcher logic to cater to changes when monitoring directories for file appearance.
- Introduced a helper function to ensure paths exist and another to resolve the first file in directories.
- Corrected logic for polling and stabilizing files within directories.
## 2025-01-07 - 11.1.4 - fix(fs)
Fix file existence check in waitForFileToBeReady method.