Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
753 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 Reply

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...