1
0
Fork 0

Added clear cache for windows, fix tests

pull/8386/head
Mikhail Fesenko 2019-10-17 13:17:13 +03:00 committed by Rob
parent 82d0b12b1c
commit c2f1a6b643
1 changed files with 4 additions and 2 deletions

View File

@ -682,12 +682,14 @@ class Filesystem
if (!Platform::isWindows()) { if (!Platform::isWindows()) {
return false; return false;
} }
// Important to clear all caches first
clearstatcache(true, $junction);
if (!is_dir($junction) || is_link($junction)) { if (!is_dir($junction) || is_link($junction)) {
return false; return false;
} }
// Important to clear all caches first
clearstatcache(true, $junction);
$stat = lstat($junction); $stat = lstat($junction);
// S_ISDIR test (S_IFDIR is 0x4000, S_IFMT is 0xF000 bitmask) // S_ISDIR test (S_IFDIR is 0x4000, S_IFMT is 0xF000 bitmask)