Closed rmoreas closed 1 year ago
Okay, now I see there is already a PR for this: #182
Leaving this open as I just realized I neglected to add a test for --exclude_file_type
. Not a blocker for release, but just don't want to forget.
I only added a test for link files. Should we close this and open a new issue for the other types?
let's open a different one for the other types.
Created https://github.com/irods/irods_capability_automated_ingest/issues/204 for the other file types. Closing.
The option
exclude_directory_name
to exclude directories in the sync using regex patterns seems not to work, for example:Results in the following error:
The root cause seems to be at line 104 of irods_capability_automated_ingest/scanner.py. Even if the directory is matched with the
exclude_directory_name
regex pattern (self.exclude_file_type
returns true), the path of the directory is returned by theitr
function and added to thechunk
that will be passed in the next call toenqueue_task(sync_files, sync_files_meta)
.Even files that are matched with a
exclude_file_name
pattern are passed toenqueue_task(sync_files, sync_files_meta)
.I think that in stead of returning the path of the excluded directory/file,
filesystem_scanner.itr
should raiseContinueException
like this: