summary refs log tree commit diff stats
path: root/code/entry.rb
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-18 04:05:54 +0200
committerhut <hut@lavabit.com>2009-06-18 04:05:54 +0200
commitd38efc3da1cd13714aa964606b78f1425bb61c6b (patch)
tree6a21d6e32b13365e1bfc77612d99d16e148ebea8 /code/entry.rb
parent9097b81b515f05c5e0e3eb76b6c51f2f374dc23a (diff)
downloadranger-d38efc3da1cd13714aa964606b78f1425bb61c6b.tar.gz
recognize *.part ending and remove it internally
Diffstat (limited to 'code/entry.rb')
-rw-r--r--code/entry.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/entry.rb b/code/entry.rb
index d85d58a4..9f0cb7b9 100644
--- a/code/entry.rb
+++ b/code/entry.rb
@@ -28,6 +28,10 @@ class Directory::Entry
 		end
 		@name, @ext = @basename.split_at_last_dot
 		@ext = @ext.downcase
+		if @ext == 'part'
+			@name, @ext = @name.split_at_last_dot
+			@ext = @ext.downcase
+		end
 		@size = 0
 		@exists = false
 		@rights = '--unread--'