mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 19:40:21 +01:00
* Cosmetic changes.
This commit is contained in:
@@ -109,13 +109,13 @@ class Thumbnail(object):
|
|||||||
return filepath, exif, returncode
|
return filepath, exif, returncode
|
||||||
|
|
||||||
# private class functions
|
# private class functions
|
||||||
def __get_and_make_path(self, img_id):
|
def __get_and_make_path(self, image_id):
|
||||||
"""Make directory structure regards of id
|
"""Make directory structure regards of id
|
||||||
and return filepath WITHOUT extension"""
|
and return filepath WITHOUT extension"""
|
||||||
t = path.join(self.base, self.root)
|
t = path.join(self.base, self.root)
|
||||||
try: mkdir(t)
|
try: mkdir(t)
|
||||||
except: pass
|
except: pass
|
||||||
h = hex(img_id)
|
h = hex(image_id)
|
||||||
if len(h[2:])>6:
|
if len(h[2:])>6:
|
||||||
try: mkdir(path.join(t, h[2:4]))
|
try: mkdir(path.join(t, h[2:4]))
|
||||||
except: pass
|
except: pass
|
||||||
|
|||||||
Reference in New Issue
Block a user