Fixed copying to current directory to be allowed to prompt auto or manual rename
This commit is contained in:
@@ -37,9 +37,6 @@ class HandlerMixin:
|
|||||||
|
|
||||||
file = Gio.File.new_for_path(path)
|
file = Gio.File.new_for_path(path)
|
||||||
if _target_path:
|
if _target_path:
|
||||||
if file.get_parent().get_path() == _target_path:
|
|
||||||
raise HandlerMixinException("Parent dir of target and file locations are the same! Won't copy or move!")
|
|
||||||
|
|
||||||
if os.path.isdir(_target_path):
|
if os.path.isdir(_target_path):
|
||||||
info = file.query_info("standard::display-name", 0, cancellable=None)
|
info = file.query_info("standard::display-name", 0, cancellable=None)
|
||||||
_target = f"{_target_path}/{info.get_display_name()}"
|
_target = f"{_target_path}/{info.get_display_name()}"
|
||||||
|
|||||||
Reference in New Issue
Block a user