Ignore registration if the fileStats is a directory