1

I am using this command line to import files into a VOB:

clearfsimport -recurse -rmname -nsetevent -filter <sourceDir>/* <vobComponentRootDir>

Content of sourceDir:

fileA
fileB

Content of vobComponentRootDir before import:

fileC

Content of vobComponentRootDir after import:

fileA
fileB
fileC

fileC is not removed, despite I used '-rmname' option.
I suspect it is because it is at the root of the component

I want to automate this import and have the same content in sourceDir and vobComponentRootDir.

How can I complete this ?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
FGI
  • 139
  • 2
  • 8

1 Answers1

0

The -rmname option that I mentioned in "How to delete file elements by file extension in ClearCase?" for clearfsimport might now always work:

The second link is relevant here and would explain why fileC remains.

This is working as designed.
The -rmname option only applies to directories and you must be in a vob directory when you run the command.

It is best to not use a full vob as a component, but to use a multi-component vob.

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250