mirror of
https://github.com/suchmememanyskill/TegraScript.git
synced 2025-04-29 14:19:28 -04:00
Add create dirs script
This commit is contained in:
parent
c3f52fe503
commit
b349e65917
1 changed files with 30 additions and 0 deletions
30
scripts/createDirs.te
Normal file
30
scripts/createDirs.te
Normal file
|
@ -0,0 +1,30 @@
|
|||
#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()
|
Loading…
Add table
Reference in a new issue