This commit is contained in:
Joey Hess 2021-08-09 13:03:19 -04:00
parent 9d684e4dfa
commit f54b9f2389
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,22 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2021-08-09T16:52:53Z"
content="""
It seems likely to me that the directory you're trying to use git-annex in
either no longer exists, or is in some other strange state.
I can get close to this error message by asking for
the contents of the directory "/etc/passwd". Of course,
that file is not a directory.
ghci> System.Directory.getDirectoryContents "/etc/passwd"
*** Exception: /etc/passwd: getDirectoryContents:openDirStream: inappropriate type (Not a directory)
I have not found a way to make readDirStream throw the error, but this
shows that the problem is basically something to do with getting directory
contents.
stracing git-annex might shed some more light on how the `readdir()`
syscall is failing.
"""]]