mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 16:56:44 +02:00
No longer require quotes to enclose paths
This commit is contained in:
@ -146,6 +146,12 @@ void bytes_convert_str(char *buf, int size, uint64_t bytes);
|
||||
/* checks if a file exists. Returns true or false */
|
||||
bool file_exists(const char *path);
|
||||
|
||||
/* Returns 0 if path points to a directory.
|
||||
* Returns 1 if path points to a regular file.
|
||||
* Returns -1 on any other result.
|
||||
*/
|
||||
int file_type(const char *path);
|
||||
|
||||
/* returns file size. If file doesn't exist returns 0. */
|
||||
off_t file_size(const char *path);
|
||||
|
||||
|
Reference in New Issue
Block a user