How to avoid extra files when using clearfsimport?

和自甴很熟 提交于 2020-01-02 09:39:49

问题


My fonts were delivered to the branch with the command

clearfsimport -rec -nset <Source> <target>

My problem is: supose in my next deliver I delete 10 files in different folders, I saw that there are many fonts in my first version and now I have fonts from my version1 that were deleted.
I need to know how to solve this problem.


回答1:


Looking at clearfsimport, you should consider the -rmname option:

For all source-name arguments that are directories, performs an rmname operation on elements that are already in the VOB but are not present in the source directory.
If used in combination with -recurse, performs this rmname operation in all directories traversed.

That way, your next import will remove the 10 files you have deleted in your folders (that you are importing)

(I usually combine that option with the options -preview and -nset)



来源:https://stackoverflow.com/questions/36478572/how-to-avoid-extra-files-when-using-clearfsimport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!