-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.h
47 lines (43 loc) · 1.15 KB
/
header.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <bits/stdc++.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <pwd.h>
#include <grp.h>
#include <signal.h>
#include <fcntl.h>
#include <utime.h>
#define deb(x) cout<<#x<<" is "<<x<<endl;
#define deb1(x,y) cout<<x<<" "<<y<<endl;
#define CLEAR_SCREEN cout<<"\033[2J\033[1;1H"; //clears the screen
#define jump(x,y) printf("%c[%d;%dH",27,x,y);
using namespace std;
void print_list(vector<string>,int,int);
void enableRAW(char *);
int check_dir(string);
int check_dir_wo_error(string);
void list_dir(char *);
void display_info(string);
long long get_Dir_size(char *);
string human_readable(long long);
void looping(int,int);
int command_mode();
string getPath(string);
string split_command();
int createFile(string);
int createDir(string);
int my_rename(string,string);
int go_to(string);
int my_search(char *,char *);
int delete_File(char *);
int delete_Dir(char *);
int my_copy(vector<string>,string);
int copyFile(string,string,string);
int copyDir(string,string,string);
int my_move(vector<string>,string);
void command_console(string);