The pathdir extension for NetLogo allows some useful operations on directories and files