comparison src/fileio.c @ 312:d1b52dcaa789 r21-0b54

Import from CVS: tag r21-0b54
author cvs
date Mon, 13 Aug 2007 10:43:55 +0200
parents 70ad99077275
children 512e409c26a2
comparison
equal deleted inserted replaced
311:b4ad76366919 312:d1b52dcaa789
2286 call the corresponding file handler. */ 2286 call the corresponding file handler. */
2287 handler = Ffind_file_name_handler (abspath, Qfile_readable_p); 2287 handler = Ffind_file_name_handler (abspath, Qfile_readable_p);
2288 if (!NILP (handler)) 2288 if (!NILP (handler))
2289 RETURN_UNGCPRO (call2 (handler, Qfile_readable_p, abspath)); 2289 RETURN_UNGCPRO (call2 (handler, Qfile_readable_p, abspath));
2290 2290
2291 #ifdef WINDOWSNT 2291 #if defined(WINDOWSNT) || defined(__CYGWIN32__)
2292 /* Under MS-DOS and Windows, open does not work for directories. */ 2292 /* Under MS-DOS and Windows, open does not work for directories. */
2293 UNGCPRO; 2293 UNGCPRO;
2294 if (access (XSTRING_DATA (abspath), 0) == 0) 2294 if (access (XSTRING_DATA (abspath), 0) == 0)
2295 return Qt; 2295 return Qt;
2296 else 2296 else