Problem: csv:digital-object-path-check wrongly complains about unused and missing files #1923
Labels
Type: bug
A flaw in the code that causes the software to produce an incorrect or unexpected result.
Current Behavior
Run the
csv:digital-object-path-check
from the CLI using the following data:Content of image folder is:
Import CSV file is:
The command wrongly complains about unused files and missing files 😢
Expected Behavior
Run the
csv:digital-object-path-check
from the CLI using the following data:Content of image folder is:
Import CSV file is:
NO unused files nor message should appear.
Possible Solution
The problem is the way the list of images is obtained, since the code is performing a
basename
for each file!!!!!! This is really bad 👎The solution is trivial, just removing the
basename
call will be enough... I am preparing a PR to solve it.Context and Notes
I am afraid there is no testing code on this part of the code, since the change is there since 2022... Or people is not using this command at all.
Version used
AtoM 2.8.2
Operating System and version
No response
Default installation culture
en,ca,es
PHP version
PHP 7.4
Contact details
contact me at @miceno
The text was updated successfully, but these errors were encountered: