11 char AbsPath[
FBLIB_DIR_SIZE], AbsFileName[MAX_FILE_NAME_SIZE + 1], *Slash;
18 if(FileName && *FileName &&
HDD_Exist(FileName))
55 strcpy(CreateOrigPath, OrigPath);
58 TAP_SPrint(cmd,
"mkdir -p \"%s\"", CreateOrigPath);
61 Slash = strrchr(AbsPath,
'/');
62 strcpy(AbsFileName, Slash + 1);
65 ret =
HDD_Move(AbsFileName, AbsPath, OrigPath);
72 if(strcmp(
"/mnt/hd/", OrigPath) == 0) strcpy(OrigPath,
"/mnt/hd/DataFiles/");
74 Slash = strrchr(AbsPath,
'/');
75 strcpy(AbsFileName, Slash + 1);
78 ret =
HDD_Move(AbsFileName, AbsPath, OrigPath);
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_UnrecycleSF(const char *FileName)
tFileInUse HDD_isFileInUse(const char *FileName)
bool StrReplace(char *String, const char *Find, const char *Replace)
char RecoverPath[FBLIB_DIR_SIZE]