Compare commits
2 Commits
a212514bbf
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 81e444809d | |||
| 892583d4d3 |
10
ulzx
10
ulzx
@@ -15,7 +15,7 @@ Changelog:
|
|||||||
|
|
||||||
Author: Roman 'gryf' Dobosz <gryf73@gmail.com>
|
Author: Roman 'gryf' Dobosz <gryf73@gmail.com>
|
||||||
Date: 2023-10-20
|
Date: 2023-10-20
|
||||||
Version: 1.2
|
Version: 1.3
|
||||||
Licence: BSD
|
Licence: BSD
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
@@ -44,7 +44,7 @@ class ULzx(extfslib.Archive):
|
|||||||
def _get_date(self, time, date):
|
def _get_date(self, time, date):
|
||||||
"""Return MM-DD-YYYY hh:mm formatted date out of time and date
|
"""Return MM-DD-YYYY hh:mm formatted date out of time and date
|
||||||
strings"""
|
strings"""
|
||||||
month_list = ["jan", "fe", "mar", "apr", "may", "jun", "jul",
|
month_list = ["jan", "feb", "mar", "apr", "may", "jun", "jul",
|
||||||
"aug", "sep", "oct", "nov", "dec"]
|
"aug", "sep", "oct", "nov", "dec"]
|
||||||
day, month, year = date.split("-")
|
day, month, year = date.split("-")
|
||||||
month = month_list.index(month) + 1
|
month = month_list.index(month) + 1
|
||||||
@@ -52,12 +52,6 @@ class ULzx(extfslib.Archive):
|
|||||||
return self.DATETIME % (month, int(day), year, int(hours),
|
return self.DATETIME % (month, int(day), year, int(hours),
|
||||||
int(minutes))
|
int(minutes))
|
||||||
|
|
||||||
def _map_name(self, name):
|
|
||||||
if name.startswith(" "):
|
|
||||||
new_name = "".join(["~", name[1:]])
|
|
||||||
return new_name
|
|
||||||
return name
|
|
||||||
|
|
||||||
def _get_dir(self):
|
def _get_dir(self):
|
||||||
"""Prepare archive file listing"""
|
"""Prepare archive file listing"""
|
||||||
contents = []
|
contents = []
|
||||||
|
|||||||
Reference in New Issue
Block a user