[unpackfs] Stub of special handling for a single file
This commit is contained in:
parent
65b81f84a5
commit
d58fdaa2cd
@ -303,6 +303,10 @@ class UnpackOperation:
|
|||||||
try:
|
try:
|
||||||
if entry.is_file():
|
if entry.is_file():
|
||||||
source = entry.source
|
source = entry.source
|
||||||
|
if entry.total <= 1:
|
||||||
|
# If there is one file, *and* the target does not exist (as a file or dir)
|
||||||
|
# but the dirname of the target does, we should copy just one file and rename.
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
source = imgmountdir
|
source = imgmountdir
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user