1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-06 09:26:44 +02:00

format fixes

This commit is contained in:
jfreegman
2019-12-07 23:17:02 -05:00
parent ddeca171a0
commit 116bff8cef
7 changed files with 17 additions and 15 deletions

View File

@ -496,11 +496,13 @@ File_Type file_type(const char *path)
switch (s.st_mode & S_IFMT) {
case S_IFDIR:
return FILE_TYPE_DIRECTORY;
case S_IFREG:
return FILE_TYPE_REGULAR;
default:
return FILE_TYPE_OTHER;
}
}
}
/* returns file size. If file doesn't exist returns 0. */