Menu

#664 posix:file-stat fails on directory on Windows

lisp error
open
nobody
None
5
2014-05-03
2014-02-28
No

Excerpt from clisp-list:

2- POSIX:file-stat doesn't look like it is working on Windows.

[1]> (lisp-implementation-version)
"2.49 (2010-07-07) (built on STSst063.jenty.by [150.0.0.63])"
[2]> (ext:probe-pathname "c:/foo/")

P"C:\foo\" ;

P"C:\foo\" ;

3602368770 ;
0
[3]> (POSIX:file-stat "c:/foo/" nil)

*** - Win32 error 2 (ERROR_FILE_NOT_FOUND): The system cannot find the
file specified.

maybe because it's a directory?

NB:
1- it's working on regular files.
2- the workaround for the purposes of UIOP is to call probe-pathname.

Discussion


Log in to post a comment.