TegraScript/scripts/createDirs.te
2022-03-19 01:07:11 +01:00

30 lines
No EOL
522 B
Text

#REQUIRE KEYS
system = ["Contents", "Contents/placehld", "Contents/registered", "save"]
if(mountsys("SYSTEM")) {
print("SYSTEM mount failed!")
pause()
exit()
}
system.foreach("x") {
println("Creating", x, "in SYSTEM")
mkdir("bis:/" + x)
}
user = ["Album","Contents","Contents/placehld","Contents/registered","save","saveMeta","temp"]
if(mountsys("USER")) {
print("USER mount failed!")
pause()
exit()
}
user.foreach("x") {
println("Creating", x, "in USER")
mkdir("bis:/" + x)
}
println("All done!")
pause()