|
|
@ -75,13 +75,6 @@ def get_filesize(path): |
|
|
|
def makedir(path): |
|
|
|
os.makedirs(path) |
|
|
|
|
|
|
|
def icon_path(icon_path, file_path): |
|
|
|
L = len(icon_path) |
|
|
|
file_path = os.path.abspath(file_path).split(get_path_seperator()) |
|
|
|
for index, item in reversed(list(enumerate(icon_path))): |
|
|
|
file_path[index - L] = item |
|
|
|
return get_path_seperator().join(file_path) |
|
|
|
|
|
|
|
def get_filename(path): |
|
|
|
return path.split(get_path_seperator())[-1] |
|
|
|
|
|
|
|