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>
|
||||
Date: 2023-10-20
|
||||
Version: 1.2
|
||||
Version: 1.3
|
||||
Licence: BSD
|
||||
"""
|
||||
import os
|
||||
@@ -44,7 +44,7 @@ class ULzx(extfslib.Archive):
|
||||
def _get_date(self, time, date):
|
||||
"""Return MM-DD-YYYY hh:mm formatted date out of time and date
|
||||
strings"""
|
||||
month_list = ["jan", "fe", "mar", "apr", "may", "jun", "jul",
|
||||
month_list = ["jan", "feb", "mar", "apr", "may", "jun", "jul",
|
||||
"aug", "sep", "oct", "nov", "dec"]
|
||||
day, month, year = date.split("-")
|
||||
month = month_list.index(month) + 1
|
||||
@@ -52,12 +52,6 @@ class ULzx(extfslib.Archive):
|
||||
return self.DATETIME % (month, int(day), year, int(hours),
|
||||
int(minutes))
|
||||
|
||||
def _map_name(self, name):
|
||||
if name.startswith(" "):
|
||||
new_name = "".join(["~", name[1:]])
|
||||
return new_name
|
||||
return name
|
||||
|
||||
def _get_dir(self):
|
||||
"""Prepare archive file listing"""
|
||||
contents = []
|
||||
|
||||
Reference in New Issue
Block a user