https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38115

--- Comment #17 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 188118
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188118&action=edit
Bug 38115: (follow-up) Use File::Basename to extract filename for remote upload

When --filename contains a path (e.g., /tmp/records.mrc), the script
was uploading to the remote server with the full path, creating
unwanted directory structures (e.g., uploads/tmp/records.mrc).

This patch uses File::Basename::fileparse() to extract just the
filename portion for the remote upload, while still using the full
path for local file operations.

Signed-off-by: Kyle M Hall <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to