mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 15:04:03 +09:00
a working internet modem that only reads
This commit is contained in:
20
assets/disk0/fstest.js
Normal file
20
assets/disk0/fstest.js
Normal file
@@ -0,0 +1,20 @@
|
||||
let f = files.open("A:/tvdos/bin")
|
||||
|
||||
//f.driveLetter = "Z"
|
||||
|
||||
|
||||
println(`File path: ${f.path}`)
|
||||
println(`FS driver: ${f.driverID}`)
|
||||
println(`DrvLetter: ${f.driveLetter}`)
|
||||
println(`Parent: ${f.parentPath}`)
|
||||
println(`Size: ${f.size}`)
|
||||
|
||||
|
||||
|
||||
println(`List of files:`)
|
||||
let ls = f.list()
|
||||
ls.forEach(it=>{
|
||||
println(`${it.path}\t${it.name}\t${it.size}`)
|
||||
})
|
||||
|
||||
println(`Size again: ${f.size}`)
|
||||
Reference in New Issue
Block a user