Files
Noja/examples/list_files.noja

8 lines
224 B
Plaintext

# This script reads the contents of the specified
# folder, and then prints all of the containd files.
dirname = '.';
dir = files.openDir(dirname);
while (filename = files.nextDirItem(dir)) != none:
print(filename, '\n');