blob: 33fba80aba4804bc209539693f03ee43a8a827cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef FILES_H
#define FILES_H
#include <stdio.h>
#include <sys/stat.h>
#include "types/types.h"
int dir_exists(char *dirpath);
int file_exists(char *filepath);
int path_exists(char *path);
u64 get_fd_size(int fd);
u64 get_fp_size(FILE *fp);
u64 get_file_size(char *filename);
char *get_extension(char *filename);
#endif
|