diff options
author | hut <hut@lavabit.com> | 2009-06-18 04:05:54 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-06-18 04:05:54 +0200 |
commit | d38efc3da1cd13714aa964606b78f1425bb61c6b (patch) | |
tree | 6a21d6e32b13365e1bfc77612d99d16e148ebea8 /code/entry.rb | |
parent | 9097b81b515f05c5e0e3eb76b6c51f2f374dc23a (diff) | |
download | ranger-d38efc3da1cd13714aa964606b78f1425bb61c6b.tar.gz |
recognize *.part ending and remove it internally
Diffstat (limited to 'code/entry.rb')
-rw-r--r-- | code/entry.rb | 4 |
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--' |