Skip to content

Commit

Permalink
[Storage]
Browse files Browse the repository at this point in the history
* add /media/net to ignore list
  • Loading branch information
jbleyel committed Jan 9, 2025
1 parent f3fa31a commit 9f00305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/Storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def cleanMediaDirs():
mounts = getProcMountsNew()
mounts = [x[1] for x in mounts if x[1].startswith("/media/")]
for directory in listdir("/media"):
if directory not in ("audiocd", "autofs", "hdd"):
if directory not in ("audiocd", "autofs", "hdd", "net"):
mediaDirectory = join("/media/", directory)
if mediaDirectory not in mounts and not ismount(mediaDirectory):
print(f"[Storage] remove directory {mediaDirectory} because of unmount")
Expand Down

0 comments on commit 9f00305

Please sign in to comment.