php “glob” and data-deduplication?

前端 未结 4 784
逝去的感伤
逝去的感伤 2021-02-12 17:14

I have a php-application which is (per request) scanning for the existance of some files. (on a network share)

I\'m using glob for this, cause usually i jus

4条回答
  •  感情败类
    2021-02-12 18:04

    This makes some sense if the intent of deduplication is not to have duplicates, then the files are being locked and php cant see them. The only thing to do is is see if this limitation applies to scandir() and the SPL directory/filesystem family of iterators as well. If so it may not be possible to get a list of them.

    The only other choice would be to use exec() and a windows command line sort of hack to see if you can get a list of files and then parse the output. This may be useful

    php exec: does not return output

    Good luck!

提交回复
热议问题