11 char AbsPath[
FBLIB_DIR_SIZE], AbsFileName[MAX_FILE_NAME_SIZE + 1], *Slash;
17 if(FileName && *FileName &&
HDD_Exist(FileName))
44 Slash = strrchr(AbsPath,
'/');
56 strcpy(AbsFileName, Slash + 1);
62 if(strcmp(
"/mnt/hd/", MountPoint) == 0) strcpy(MountPoint,
"/mnt/hd/DataFiles/");
64 TAP_SPrint(RecycleDir,
"%sRecycleBin-", MountPoint);
65 mkdir(RecycleDir, 0777);
66 ret =
HDD_Move(AbsFileName, AbsPath, RecycleDir);
void ConvertPathType(const char *Source, char *Dest, tPathFormat DestFormat)
bool HDD_Exist(const char *FileName)
bool HDD_FindMountPoint(const char *File, char *MountPoint)
bool HDD_InfBlockGet(const char *RecPath, tinfBlock *infBlock)
bool HDD_InfBlockSet(const char *RecPath, tinfBlock *infBlock)
bool HDD_Move(const char *FileName, const char *FromDir, const char *ToDir)
bool HDD_RecycleSF(const char *FileName)
tFileInUse HDD_isFileInUse(const char *FileName)
char RecoverPath[FBLIB_DIR_SIZE]