I've got a problem with a nimscript after updating to Nim version 0.16.0.
test.nims:
echo listDirs("/")
Output:
$ nim test.nims
Hint: used config file '/etc/nim.cfg' [Conf]
nil
Obviously the root directory contains folders.
Additional information:
$ nim -v
Nim Compiler Version 0.16.0 (2017-03-12) [Linux: amd64]
Copyright (c) 2006-2017 by Andreas Rumpf
active boot switches: -d:release -d:nativeStackTrace
$ uname -r -m -o
4.10.4-1-ARCH x86_64 GNU/Linux
Am I doing something wrong?
Works for me. Same OS even (64-bit Arch Linux)
$ nim test.nims
Hint: used config file '/home/zion/.nimvm/versions/devel/config/nim.cfg' [Conf]
@[/boot, /var, /dev, /run, /etc, /tmp, /sys, /proc, /usr, /home, /mnt, /opt, /root, /srv]
nim --version
Nim Compiler Version 0.16.0 (2017-03-22) [Linux: amd64]
Copyright (c) 2006-2017 by Andreas Rumpf
git hash: b040f74356748653dab491e0c2796549c1db4ac3
active boot switches: -d:release -d:nativeStackTrace
uname -r -m -o
4.10.4-1-ARCH x86_64 GNU/Linux