File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ static inline bool ffPathExists(const char* path, FFPathType pathType)
119
119
}
120
120
else
121
121
{
122
- #if (__APPLE__ || __HAIKU__ ) // #1395
123
122
struct stat fileStat ;
124
123
if (stat (path , & fileStat ) != 0 )
125
124
return false;
@@ -131,24 +130,6 @@ static inline bool ffPathExists(const char* path, FFPathType pathType)
131
130
132
131
if (pathType & FF_PATHTYPE_DIRECTORY && mode == S_IFDIR )
133
132
return true;
134
- #else
135
- size_t len = strlen (path );
136
- assert (len < PATH_MAX );
137
- if (len == 0 ) return false;
138
-
139
- int ret ;
140
- if (path [len - 1 ] != '/' )
141
- {
142
- char buf [PATH_MAX + 1 ];
143
- memcpy (buf , path , len );
144
- buf [len ] = '/' ;
145
- buf [len + 1 ] = 0 ;
146
- ret = access (buf , F_OK );
147
- }
148
- else
149
- ret = access (path , F_OK );
150
- return pathType == FF_PATHTYPE_DIRECTORY ? ret == 0 : ret == -1 && errno == ENOTDIR ;
151
- #endif
152
133
}
153
134
154
135
#endif
You can’t perform that action at this time.
0 commit comments