3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

auto-t: hotspot dir not hidden

This commit is contained in:
James Prestwood 2019-07-15 09:19:44 -07:00 committed by Denis Kenzior
parent 85131f4827
commit ce9e61d727

View File

@ -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):