first parameter to path-from-handle can be any file handle, not just a directory handle