Closed GeoffFroh closed 6 years ago
ddr-import file fails when trying to import files when the targeted repo is on non-local storage (i.e., nfs mount). The error is:
ddr-import file
OSError: [Errno 18] Invalid cross-device link
Resolution: ingest.py should use shutil.move instead of os.rename. See:
ingest.py
shutil.move
os.rename
https://github.com/densho/ddr-cmdln/blob/00d6bf004a20c921f921fa5f28616ce642a51958/ddr/DDR/ingest.py#L209
*(We should probably find and replace all instances of os.rename in ddr-cmdln -- this has shown up in the past and was fixed in ddr-pubcopy)
ddr-cmdln
ddr-pubcopy
Fixed in c58fcaf.
ddr-import file
fails when trying to import files when the targeted repo is on non-local storage (i.e., nfs mount). The error is:OSError: [Errno 18] Invalid cross-device link
Resolution:
ingest.py
should useshutil.move
instead ofos.rename
. See:https://github.com/densho/ddr-cmdln/blob/00d6bf004a20c921f921fa5f28616ce642a51958/ddr/DDR/ingest.py#L209
*(We should probably find and replace all instances of
os.rename
inddr-cmdln
-- this has shown up in the past and was fixed inddr-pubcopy
)