Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
760 views
in Technique[技术] by (71.8m points)

gulp - Gulp任务-删除目录2中存在的目录1中的所有文件(Gulp Task - remove all files in directory 1 that exist in directory 2)

I would like to remove all files from a directory (dirA) that exist in a different directory (dirB).

(我想从另一个目录(dirB)中存在的目录(dirA)中删除所有文件。)

The routine needs to check each file in dirA to see if it exists in dirB.

(该例程需要检查dirA中的每个文件,以查看它是否存在于dirB中。)

If it does exist and it is the same size, then it should be removed from dirA.

(如果确实存在并且大小相同,则应将其从dirA中删除。)

I have to run this as a gulp task on a windows 10 machine.

(我必须在Windows 10计算机上将其作为一项吞咽任务运行。)

How can I do this?

(我怎样才能做到这一点?)

  ask by user849202 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...