mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
auto-t: hotspot dir not hidden
This commit is contained in:
parent
85131f4827
commit
ce9e61d727
@ -947,7 +947,7 @@ class IWD(AsyncOpAbstract):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def clear_storage():
|
def clear_storage():
|
||||||
os.system('rm -rf ' + IWD_STORAGE_DIR + '/*')
|
os.system('rm -rf ' + IWD_STORAGE_DIR + '/*')
|
||||||
os.system('rm -rf ' + IWD_STORAGE_DIR + '/.hotspot/*')
|
os.system('rm -rf ' + IWD_STORAGE_DIR + '/hotspot/*')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_in_storage(file_name, file_content):
|
def create_in_storage(file_name, file_content):
|
||||||
@ -970,10 +970,10 @@ class IWD(AsyncOpAbstract):
|
|||||||
|
|
||||||
assert not os.path.isabs(source)
|
assert not os.path.isabs(source)
|
||||||
|
|
||||||
if not os.path.exists(IWD_STORAGE_DIR + "/.hotspot"):
|
if not os.path.exists(IWD_STORAGE_DIR + "/hotspot"):
|
||||||
os.mkdir(IWD_STORAGE_DIR + "/.hotspot")
|
os.mkdir(IWD_STORAGE_DIR + "/hotspot")
|
||||||
|
|
||||||
shutil.copy(source, IWD_STORAGE_DIR + "/.hotspot")
|
shutil.copy(source, IWD_STORAGE_DIR + "/hotspot")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def remove_from_storage(file_name):
|
def remove_from_storage(file_name):
|
||||||
|
Loading…
Reference in New Issue
Block a user