upplib 3.3.6__tar.gz → 3.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {upplib-3.3.6 → upplib-3.3.7}/PKG-INFO +1 -1
- {upplib-3.3.6 → upplib-3.3.7}/upplib/__init__.py +1 -1
- upplib-3.3.6/upplib/file_text.py → upplib-3.3.7/upplib/file_to_text.py +8 -8
- upplib-3.3.7/upplib/text_to_file.py +3 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/PKG-INFO +1 -1
- {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/SOURCES.txt +2 -1
- {upplib-3.3.6 → upplib-3.3.7}/LICENSE +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/README.md +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/pyproject.toml +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/setup.cfg +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/setup.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/chart.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/chart_html.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/clean_up_msg.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/common_package.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/config_data.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/db.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/file.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/format_data.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/http_util.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/index.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/mail.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/mail_html.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/markdown.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/multi_thread.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/query_log.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/redis_tool.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib/util.py +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/dependency_links.txt +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/requires.txt +0 -0
- {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/top_level.txt +0 -0
|
@@ -4,25 +4,25 @@ from upplib.file import get_file
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
def get_latest_file(file_path: str = None,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
path_startswith: str = None,
|
|
8
|
+
startswith: str = None,
|
|
9
9
|
path_contain: str = None,
|
|
10
10
|
contain: str = None,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
path_endswith: str = None,
|
|
12
|
+
endswith: str = None,
|
|
13
13
|
full_path: bool = None) -> None | tuple[str, str] | str:
|
|
14
14
|
"""
|
|
15
15
|
按照文件名字排序,获得最新的一个文件
|
|
16
16
|
full_path: 是否返回完整的路径
|
|
17
17
|
"""
|
|
18
18
|
html_list = get_file(file_path=file_path,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
path_startswith=path_startswith,
|
|
20
|
+
startswith=startswith,
|
|
21
21
|
path_contain=path_contain,
|
|
22
22
|
contain=contain,
|
|
23
23
|
sort_asc=False,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
path_endswith=path_endswith,
|
|
25
|
+
endswith=endswith)
|
|
26
26
|
r1 = html_list[-1] if len(html_list) > 0 else None
|
|
27
27
|
if r1 is None:
|
|
28
28
|
return None
|
|
@@ -10,7 +10,7 @@ upplib/common_package.py
|
|
|
10
10
|
upplib/config_data.py
|
|
11
11
|
upplib/db.py
|
|
12
12
|
upplib/file.py
|
|
13
|
-
upplib/
|
|
13
|
+
upplib/file_to_text.py
|
|
14
14
|
upplib/format_data.py
|
|
15
15
|
upplib/http_util.py
|
|
16
16
|
upplib/index.py
|
|
@@ -20,6 +20,7 @@ upplib/markdown.py
|
|
|
20
20
|
upplib/multi_thread.py
|
|
21
21
|
upplib/query_log.py
|
|
22
22
|
upplib/redis_tool.py
|
|
23
|
+
upplib/text_to_file.py
|
|
23
24
|
upplib/util.py
|
|
24
25
|
upplib.egg-info/PKG-INFO
|
|
25
26
|
upplib.egg-info/SOURCES.txt
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|