Compare commits

2 Commits

Author SHA1 Message Date
81e444809d Fix February dict key. 2026-01-21 07:56:06 +01:00
892583d4d3 Removed _map_name method. 2023-10-23 18:16:22 +02:00

10
ulzx
View File

@@ -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 = []