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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…