xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit dd73e87180a878b7767591a2933ebd69fe609bdf

Fix check for directory on OS X
Thanks to Daniel R., a.k.a. reicheltd.

Fixes #53.
Author: xaizek
Author date (UTC): 2014-10-09 16:58
Committer name: xaizek
Committer date (UTC): 2014-10-09 17:01
Parent(s): 51611de7f294801eb306d5eac87e1f1461c3c460
Signing key:
Tree: 005919ef49b8410cf8d2f50a8df1d9109b2ccd20
File Lines added Lines deleted
src/utils/fs.c 2 2
File src/utils/fs.c changed (mode: 100644) (index 1f98dbe75..dd8976d28)
... ... is_dir(const char path[])
76 76 static int static int
77 77 is_dir_fast(const char path[]) is_dir_fast(const char path[])
78 78 { {
79 #ifndef _WIN32
79 #if !defined(_WIN32) && !defined(__APPLE__) && !defined(BSD)
80 80 /* Optimization idea: is_dir() ends up using stat() call, which in turn has /* Optimization idea: is_dir() ends up using stat() call, which in turn has
81 81 * to: * to:
82 82 * 1) resolve path to an inode number; * 1) resolve path to an inode number;
 
... ... is_dir_fast(const char path[])
95 95
96 96 return access(path_to_selfref, F_OK) == 0; return access(path_to_selfref, F_OK) == 0;
97 97 #else #else
98 /* Windows reports that "/path/to/file/." is directory. */
98 /* Some systems report that "/path/to/file/." is directory... */
99 99 return 0; return 0;
100 100 #endif #endif
101 101 } }
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master