问题描述
我正在使用以下命令行将文件导入VOB:
I am using this command line to import files into a VOB:
clearfsimport -recurse -rmname -nsetevent -filter <sourceDir>/* <vobComponentRootDir>
sourceDir的内容:
Content of sourceDir:
fileA
fileB
的内容导入前vobComponentRootDir
:
fileC
导入后 vobComponentRootDir
的内容:
fileA
fileB
fileC
<$尽管我使用了'-rmname'选项,但c $ c> fileC 并未被删除。
我怀疑这是因为它位于组件的根目录
fileC
is not removed, despite I used '-rmname' option.
I suspect it is because it is at the root of the component
我想使此导入自动化,并且在 sourceDir
和 vobComponentRootDir 。
I want to automate this import and have the same content in
sourceDir
and vobComponentRootDir
.
如何完成此操作?
推荐答案
<$ c我在 对于现在可能始终有效:
The
-rmname
option that I mentioned in "How to delete file elements by file extension in ClearCase?" for clearfsimport
might now always work:
- "
"
clearfsimport -rmname
may not detect removed directories if wildcards are used to specify source directories""
clearfsimport -rmname
does not work for files at the root directory"
第二个链接与此处相关,将解释为什么保留fileC的原因。
The second link is relevant here and would explain why fileC remains.
最好不要将完整的VOB用作组件,而应使用多分量VOB。
It is best to not use a full vob as a component, but to use a multi-component vob.
如果不可能,则可以尝试将
vobComponentRootDir
的内容移动到子文件夹
中(仅适用于 clearfsimport
起作用): vobComponentRootDir\子文件夹
。
然后移动相同的内容cleafsimport完成后,返回 vobComponentRootDir
。
If not possible, then you can try and move the content of
vobComponentRootDir
in a subfolder
(just for the clearfsimport
to work): vobComponentRootDir\subfolder
.
And move that same content back in vobComponentRootDir
once the cleafsimport is completed.
这篇关于clearfsimport不会删除组件根目录下的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!