mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Windows opts
This commit is contained in:
committed by
Christian Visintin
parent
26ff496829
commit
028f64a588
@@ -543,10 +543,9 @@ impl Localhost {
|
|||||||
}),
|
}),
|
||||||
false => {
|
false => {
|
||||||
// Is File
|
// Is File
|
||||||
let extension: Option<String> = match path.extension() {
|
let extension: Option<String> = path
|
||||||
Some(s) => Some(String::from(s.to_str().unwrap_or(""))),
|
.extension()
|
||||||
None => None,
|
.map(|s| String::from(s.to_str().unwrap_or("")));
|
||||||
};
|
|
||||||
FsEntry::File(FsFile {
|
FsEntry::File(FsFile {
|
||||||
name: file_name,
|
name: file_name,
|
||||||
abs_path: path.clone(),
|
abs_path: path.clone(),
|
||||||
|
|||||||
Reference in New Issue
Block a user