You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defAddFile(self, file: File) ->None:
iffile.FileSetisnotNone:
raiseValueError(f"File '{file.Path!s}' is already part of fileset '{file.FileSet.Name}' and can't be assigned to an other fileset.")
self._files.append(file)
file._fileSet=self
There is currently no explicit check on duplicates.
I think 2 changes are needed:
Adding a set to quickly identify duplicates in a fileset. Iterating a list is not so good. I might run a performance test before that change.
Adding a check also on the File.FileSet property so both direction of linking files with filesets is then protected from duplicates.
When the
FileSet
reference is set in the file the file gets duplicated in the file set.output
The text was updated successfully, but these errors were encountered: