You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we use pattern with trailing slash, like "/home/" and such object exist, than sftp.Glob duplicates object's name, and returns "/home/home". It happens because c.Lstat(pattern) finds existing object with trailing slash, but Split(pattern) doesn't split dir and object, and then Join(dir, file.Name()) joins duplicates.
If we use pattern with trailing slash, like
"/home/"
and such object exist, thansftp.Glob
duplicates object's name, and returns "/home/home". It happens becausec.Lstat(pattern)
finds existing object with trailing slash, butSplit(pattern)
doesn't split dir and object, and thenJoin(dir, file.Name())
joins duplicates.I'am not sure how it should to work, but i think current logic not properly right. May i help?
The text was updated successfully, but these errors were encountered: