function desc for DirFilenames
refactored io