melizalab / neurobank

management system for experimental data
GNU General Public License v2.0
0 stars 1 forks source link

nbank deposit should fail gracefully for resources on a different filesystem #17

Closed dmeliza closed 3 years ago

dmeliza commented 4 years ago

The OS command being used to deposit files in an archive will fail if the resource is on a different filesystem than the archive. The error message is difficult to interpret, and the error happens after the resource is added to the registry, so the user then has to manually remove the resource. Script should check to make sure that this will not happen and give the user a useful message to help.

dmeliza commented 3 years ago

More generally, the script needs to do some checks as to whether the deposit operation is likely to work before registering the resource. It's a fairly common problem that is not trivial to fix, because the resources need to be removed from the registry.

A complementary fix would be to allow the user to deposit a file already in the registry so long as the target doesn't already exist.