summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/Copy.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp
index 53f62958..b0801075 100644
--- a/src/server/events/Copy.cpp
+++ b/src/server/events/Copy.cpp
@@ -209,7 +209,9 @@ Copy::post_process()
void
Copy::undo(Interface& target)
{
- target.del(_new_uri);
+ if (uri_is_path(_new_uri)) {
+ target.del(_new_uri);
+ }
}
} // namespace Events