Fastest way to copy files from one directory to another

前端 未结 4 1396
死守一世寂寞
死守一世寂寞 2020-12-10 09:57

I need to copy files from one directory to another, depending on the existence of the file name in a table of SQL database.

For this I use the following code:

<
4条回答
  •  我在风中等你
    2020-12-10 10:22

    I addressed this problem by creating a single compressed file (.zip) using the parameter to just store the file (no compression). Creating the single (.zip) file, moving that single file, then expanding at the location proved to be 2x faster when dealing with thousands of files.

提交回复
热议问题