Improve empty directory check
This commit is contained in:
parent
52a6cf3963
commit
1db6805a51
1 changed files with 2 additions and 2 deletions
|
|
@ -158,10 +158,10 @@ impl Config {
|
|||
}
|
||||
}
|
||||
|
||||
if config.receive_directory == PathBuf::new() {
|
||||
if config.receive_directory.as_os_str().is_empty() {
|
||||
config.receive_directory.clone_from(&config.directory);
|
||||
}
|
||||
if config.send_directory == PathBuf::new() {
|
||||
if config.send_directory.as_os_str().is_empty() {
|
||||
config.send_directory.clone_from(&config.directory);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue