4 typedef enum FileType
{
16 enum FileType fileType
;
19 typedef enum AppEvent
{
25 typedef enum FileAction
{
34 typedef struct FileInfo
45 /* an abbreviated file name*/
54 /* unsigned int linkmode; */
61 enum FileType fileType
;
63 struct FileInfo
*next
;
67 #define DIR_STR "DIRECTORY"
68 #define ROOT_STR "ROOT"
69 #define HOME_STR "HOME"
70 #define DEFAULT_STR "DEFAULT_IMG"
71 #define NULL_STR "NULL"
73 char *GetFileAbbrev(char *fileName
);
74 char *GetPathFromPathname(char* pathname
);
75 char *GetPathnameFromPathName(char* path
, char *name
);
76 char *GetNameFromPathname(char* pathname
);
77 char *GetFileImgName(char *fileName
, enum FileType fileType
);
78 void GetFileInfo(char* path
, char *name
, FileInfo
* fileInfo
);
79 FileInfo
*GetDirList(char *path
);
80 char *GetFileExtn(char *filename
);
81 Bool
isDirectory(enum FileType fileType
);
82 char *RemoveFileExtension(char* filename
);
83 /* Bool DisplayFile(const char *str); */
84 Bool
DisplayFile(char *str
, char *filter
, FileType fileType
);
85 void FSToggleDisplayHiddenFiles();
87 FileInfo
*FSCreateFileInfo();
88 FileInfo
*FSGetFileInfo(char* pathname
);
89 void FSFreeFileInfo(FileInfo
*fileInfo
);
90 void FSCopyFileInfo(FileInfo
*src
, FileInfo
*dest
);
91 int FSCreateNewFile(char *path
, mode_t mode
);
92 int FSCreateNewDirectory(char *path
, mode_t mode
);
93 int FSRCopy(char *oldpath
, char *newpath
);
94 int FSRDel(char *path
);
95 void FSCopy(FileInfo
*src
, FileInfo
*dest
);
96 void FSDelete(FileInfo
*item
);
97 void FSMove(FileInfo
*src
, FileInfo
*dest
);
98 void FSRename(FileInfo
*src
, FileInfo
*dest
);
99 void FSLink(FileInfo
*src
, FileInfo
*dest
);