Errors using PHP to traverse windows applications files -- 2
Budget: $10 – $25 USD
I am using PHP 7.2.34 Windows 10 Home Version 22H2 to traverse my c drive directories and files using scandir and filesize to see where my space is being used. It works fine with directories and files that I created but gets errors when I run it on directories and files that windows created:
Warning: scandir(c://$Recycle.Bin/S-1-5-21-1197856786-688301365-2477971481-1247,c://$Recycle.Bin/S-1-5-21-1197856786-688301365-2477971481-1247): Access is denied. (code: 5)
Warning: filesize(): stat failed for c://DumpStack.log.tmp
Warning: scandir(c://$Recycle.Bin/S-1-5-21-1197856786-688301365-2477971481-1162): failed to open dir: No such file or directory in C:\xampp\htdocs\LL\FilePathsAndTrees.php on line 103
Before we talk you need to tell me about fifteen. What do we get when we double it?
Warning: scandir(c://$Recycle.Bin/S-1-5-21-1197856786-688301365-2477971481-1247,c://$Recycle.Bin/S-1-5-21-1197856786-688301365-2477971481-1247): Access is denied. (code: 5)
Warning: filesize(): stat failed for c://DumpStack.log.tmp
Warning: scandir(c://$Recycle.Bin/S-1-5-21-1197856786-688301365-2477971481-1162): failed to open dir: No such file or directory in C:\xampp\htdocs\LL\FilePathsAndTrees.php on line 103
Before we talk you need to tell me about fifteen. What do we get when we double it?