Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import os
|
||||
|
||||
fn main() {
|
||||
files := os.ls('.') or {
|
||||
println(err)
|
||||
return
|
||||
}
|
||||
mut f := os.create('file_list.txt') or {
|
||||
println(err)
|
||||
return
|
||||
}
|
||||
for file in files {
|
||||
if os.is_file(file) {
|
||||
f.write_string(file + '\r\n') or { println(err) }
|
||||
}
|
||||
}
|
||||
f.close()
|
||||
}
|
||||
Reference in new issue
Block a user