Accept directory name instead of file names