diff --git a/webif/html/browse/clipboard.jim b/webif/html/browse/clipboard.jim index ed2a1ea..c89317d 100755 --- a/webif/html/browse/clipboard.jim +++ b/webif/html/browse/clipboard.jim @@ -82,6 +82,7 @@ switch $action { set path [$item get path] set file [file tail $path] set mode [$item get action] + set fileonly 0 puts "Pasting $file" @@ -105,8 +106,13 @@ switch $action { "$dir/[file tail $f]"} } } + } else { + set fileonly 1 } } else { + set fileonly 1 + } + if {$fileonly} { if {$mode eq "cut"} { catch {file rename $path \ "$dir/[file tail $path]"}