Files
MikOS/sys/kernel/mount.py
2026-01-25 17:01:16 +08:00

16 lines
410 B
Python

import os
def Mount(dir,Note):
get=os.popen(f"subst {Note} {dir}").read()
if get==f"无效参数 - {Note}\n":
return "error:Note"
elif get==f"找不到路径 - {dir}\n":
return "error:dir"
else:
return True
def endMount(Note):
get=os.popen(f"subst {Note} /d").read()
if get==f"无效参数 - {Note}\n":
return "error:Note"
else:
return True