mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
auto-t: allow copy_to_storage to copy directories
This commit is contained in:
parent
25ec69b358
commit
1a2f10dacd
@ -960,6 +960,10 @@ class IWD(AsyncOpAbstract):
|
|||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
assert not os.path.isabs(source)
|
assert not os.path.isabs(source)
|
||||||
|
|
||||||
|
if os.path.isdir(source):
|
||||||
|
shutil.copytree(source, IWD_STORAGE_DIR + "/%s" % source)
|
||||||
|
else:
|
||||||
shutil.copy(source, IWD_STORAGE_DIR)
|
shutil.copy(source, IWD_STORAGE_DIR)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user