path should be either a directory or a file that contains an object whose each method yields file names.
[Validate]