# | Line 388 | Line 388 | void Frodo::AboutRequested(void) | |
---|---|---|
388 | { | |
389 | new AboutWindow(); | |
390 | } | |
391 | + | |
392 | + | |
393 | + | /* |
394 | + | * Determine whether path name refers to a directory |
395 | + | */ |
396 | + | |
397 | + | bool IsDirectory(const char *path) |
398 | + | { |
399 | + | struct stat st; |
400 | + | return stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode); |
401 | + | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |