This commit is contained in:
Chris Hennick 2023-05-14 18:43:19 -07:00
parent c31d85930b
commit 7bb1d9d190
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -33,10 +33,9 @@ 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
if !self.name.ends_with('\\') && !self.name.ends_with('/') { && !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()
} }