summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-09 00:34:27 +0100
committerhut <hut@lavabit.com>2010-01-09 00:34:27 +0100
commit2a64495f966991585dc7e4a35d48f8801fc556f8 (patch)
treea237d775186c42323b0c94c8327db5ce3500633c /ranger
parent07277a0a8a002464c83c81978549c42642493c2c (diff)
downloadranger-2a64495f966991585dc7e4a35d48f8801fc556f8.tar.gz
actions: fixed deletion of symlinks to directories
Diffstat (limited to 'ranger')
-rw-r--r--ranger/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index 42756379..7e1c1dd3 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -451,7 +451,7 @@ class Actions(EnvironmentAware, SettingsAware):
 		self.env.copy -= selected
 		if selected:
 			for f in selected:
-				if os.path.isdir(f.path):
+				if os.path.isdir(f.path) and not os.path.islink(f.path):
 					try:
 						shutil.rmtree(f.path)
 					except OSError as err: