uhd-urz / elAPI

An extensible API client for eLabFTW
GNU Affero General Public License v3.0
5 stars 0 forks source link

--export shows warning when file doesn't already exist but no warning when it does #17

Closed alexander-haller closed 2 months ago

alexander-haller commented 6 months ago

In GitLab by @mhxion on Mar 9, 2024, 17:09

Reported by @alexander-haller

--export gives the warning WARNING PATH=<path> could not be found. An attempt to create PATH=<path> will be made. This warning would make more sense if elapi had to create new directories instead of just files.

It is also worth noting, elapi --export gives no warning when a file already exists and it is to be overwritten.

alexander-haller commented 6 months ago

In GitLab by @mhxion on Mar 9, 2024, 17:45

elapi --export gives no warning when a file already exists and it is to be overwritten.

We can introduce an --overwrite flag to solve this issue as suggested by Alexander.

To-do:

alexander-haller commented 2 months ago

In GitLab by @mhxion on Jun 15, 2024, 13:09

Fixed with !42.