mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-01 03:36:45 +02:00
implement data file encryption
This commit is contained in:
@ -306,8 +306,8 @@ 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 *fp)
|
||||
bool file_exists(const char *path)
|
||||
{
|
||||
struct stat s;
|
||||
return stat(fp, &s) == 0;
|
||||
return stat(path, &s) == 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user