MetPX / sarrac

C implementation of (a subset of) Sarracenia (large scale file transfer utility)
GNU General Public License v2.0
4 stars 1 forks source link

If post_baseDir ends in /, the relPaths are wrong #185

Closed reidsunderland closed 5 days ago

reidsunderland commented 6 days ago

if you set post_baseDir /home/me/, 1 too many characters are removed from the string that becomes relPath:

[INFO] shim published: { "pubTime":"20241119214913.65838401", "baseUrl":"file:/home/me", "relPath":"r3c-issue140/file_to_remove1", "topic":"v03.post.r3c-issue140", "toto":"pig", "blank":"", "home":"/home/me", "fileOp" : { "remove":""}}

Noticed while working on #140 and I'll fix it in the same branch.