Initial commit with README
This commit is contained in:
16
sys/kernel/mount.py
Normal file
16
sys/kernel/mount.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user