Skip to content
Advertisement

Tag: scandir

Remove files which have not filename duplicates

For each document (.pdf, .txt, .docx ecc) I have also a corresponding json file with the same filename. Example: file1.json, file1.pdf, file2.json, file2.txt, filex.json, filex.pdf, But I got also some json files which are not accompanied with the corresponding document. I want to delete all json files which have no corresponding document. Im really stucked because I cant find a

Access External NAS /Volume via scandir in PHP on Mac

I’ve done a bunch of research on this one and there are very different answers. I can’t get confident that I won’t mess up my Apache settings or cause me not to be able to get to the Volume from Mac Finder after making changes. Has anyone done this recently that can walk me through the steps to get my

Advertisement