mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-01-18 00:31:39 +00:00
Use basename of file as name to store in directory when adding file to ATR image
This commit is contained in:
parent
45921e36ea
commit
2ff1562ab1
@ -153,6 +153,7 @@ def add_files(image, files):
|
||||
for name in files:
|
||||
with open(name, "rb") as fh:
|
||||
data = fh.read()
|
||||
name = os.path.basename(name)
|
||||
changed = save_file(image, name, filetype, data)
|
||||
if changed:
|
||||
image.save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user