"File.length should be undefined for files and defined for directories". If directory, return length, else, return undefined.