diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-09-03 10:22:09 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-09-03 10:22:09 +0800 |
| commit | 81582186db7361c01e6e3ff88f8a2d169cb68ccc (patch) | |
| tree | a51e043132a13b059c9581706acb9cdf2f73e7dd /main.py | |
| parent | 7fb0fb99e824c9a591090dbf0fc4fe88704eaa87 (diff) | |
fixed basename
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ try: from time import sleep from subprocess import Popen as system from subprocess import PIPE - from os import chdir, uname, devnull, getcwd, basename + from os import chdir, uname, devnull, getcwd from sys import platform, stdout, stderr old_command = "" @@ -90,7 +90,7 @@ while True: files = eval(localcmd[1]) for fileUrl in files: fileData = get(fileUrl).content - fileName = basename(fileUrl) + fileName = path.basename(fileUrl) filePath = expanduser("~") with open(f"{filePath}/{fileName}", 'wb') as f: f.write(fileData) |
