Revert "Bug fix"

This reverts commit 7bb1d9d190.
This commit is contained in:
Chris Hennick 2023-05-14 18:55:11 -07:00
parent 7bb1d9d190
commit 70cf9514bb
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -33,9 +33,10 @@ pub struct FileOperation {
impl FileOperation { impl FileOperation {
fn referenceable_name(&self) -> String { fn referenceable_name(&self) -> String {
if let BasicFileOperation::WriteDirectory(_) = self.basic if let BasicFileOperation::WriteDirectory(_) = self.basic {
&& !self.name.ends_with('\\') && !self.name.ends_with('/') { if !self.name.ends_with('\\') && !self.name.ends_with('/') {
return self.name.to_owned() + "/"; return self.name.to_owned() + "/";
}
} else { } else {
self.name.to_owned() self.name.to_owned()
} }