about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index f2a52451..b100c16c 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -1048,10 +1048,10 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
 
     @staticmethod
     def sha512_encode(path, inode=None):
-        if not inode:
+        if inode is None:
             inode = stat(path).st_ino
         sha = sha512(
-            os.path.join(path, str(inode)).encode('utf-8','backslashescape')
+            "{0}{1}".format(path, str(inode)).encode('utf-8', 'backslashescape')
         )
         return '{0}.jpg'.format(sha.hexdigest())