equal
deleted
inserted
replaced
85 #if defined(__MORPHOS__) || defined(__AMIGAOS__) |
85 #if defined(__MORPHOS__) || defined(__AMIGAOS__) |
86 /* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */ |
86 /* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */ |
87 if (FiosIsRoot(path)) { |
87 if (FiosIsRoot(path)) { |
88 snprintf(filename, lengthof(filename), "%s:%s", path, ent->d_name); |
88 snprintf(filename, lengthof(filename), "%s:%s", path, ent->d_name); |
89 } else // XXX - only next line! |
89 } else // XXX - only next line! |
90 #endif |
90 #else |
91 snprintf(filename, lengthof(filename), "%s" PATHSEP "%s", path, ent->d_name); |
91 assert(path[strlen(path) - 1] == PATHSEPCHAR); |
|
92 if (strlen(path) > 2) assert(path[strlen(path) - 2] != PATHSEPCHAR); |
|
93 #endif |
|
94 snprintf(filename, lengthof(filename), "%s%s", path, ent->d_name); |
92 |
95 |
93 return stat(filename, sb) == 0; |
96 return stat(filename, sb) == 0; |
94 } |
97 } |
95 |
98 |
96 bool FiosIsHiddenFile(const struct dirent *ent) |
99 bool FiosIsHiddenFile(const struct dirent *ent) |