A non-directory was specified where a directory is required, such as in a path prefix or as an argument to the chdir(2) call.
Look at a listing of all the files in the current directory and try again, specifying a directory instead of a file.
The symbolic name for this error is ENOTDIR, errno=20.