11 bool isRec, isDel, ret;
44 TAP_SPrint(OldName,
"%s%s-%d%s", Path, Name, fNumber, Ext);
46 TAP_SPrint(OldName,
"%s%s%s", Path, Name, Ext);
48 TAP_SPrint(NewName,
"%s.del", OldName);
51 if(rename(OldName, NewName) == 0)
56 strcat(OldName,
".inf");
57 NewName[strlen(NewName) - 4] =
'\0';
58 strcat(NewName,
".inf.del");
59 rename(OldName, NewName);
62 OldName[strlen(OldName) - 4] =
'\0';
63 strcat(OldName,
".nav");
64 NewName[strlen(NewName) - 8] =
'\0';
65 strcat(NewName,
".nav.del");
66 rename(OldName, NewName);
69 OldName[strlen(OldName) - 8] =
'\0';
70 strcat(OldName,
".cut");
71 NewName[strlen(NewName) - 12] =
'\0';
72 strcat(NewName,
".cut.del");
73 rename(OldName, NewName);
76 OldName[strlen(OldName) - 4] =
'\0';
77 strcat(OldName,
".cut.bak");
78 NewName[strlen(NewName) - 8] =
'\0';
79 strcat(NewName,
".cut.bak.del");
80 rename(OldName, NewName);
83 OldName[strlen(OldName) - 8] =
'\0';
84 strcat(OldName,
".srt");
85 NewName[strlen(NewName) - 12] =
'\0';
86 strcat(NewName,
".srt.del");
87 rename(OldName, NewName);
void ConvertPathType(const char *Source, char *Dest, tPathFormat DestFormat)
bool HDD_Exist(const char *FileName)
bool HDD_Recycle(const char *FileName)
tFileInUse HDD_isFileInUse(const char *FileName)
void MakeUniqueFileName(char *FileName)
void SeparateFileNameComponents(const char *FileName, char *Path, char *Name, char *Ext, int *Index, bool *isRec, bool *isDel)
bool HDD_isRecFileName(const char *FileName)
#define TS_FILE_NAME_SIZE