11 bool isRec, isDel, ret;
23 TAP_SPrint(NewName,
"%s%s-%d%s", Path, Name, fNumber, Ext);
25 TAP_SPrint(NewName,
"%s%s%s", Path, Name, Ext);
27 TAP_SPrint(OldName,
"%s.del", NewName);
29 if(rename(OldName, NewName) == 0)
31 if(isRec && strcmp(Ext,
".nav"))
34 OldName[strlen(OldName) - 4] =
'\0';
35 strcat(OldName,
".inf.del");
36 strcat(NewName,
".inf");
37 rename(OldName, NewName);
40 OldName[strlen(OldName) - 8] =
'\0';
41 strcat(OldName,
".nav.del");
42 NewName[strlen(NewName) - 4] =
'\0';
43 strcat(NewName,
".nav");
44 rename(OldName, NewName);
47 OldName[strlen(OldName) - 12] =
'\0';
48 strcat(OldName,
".cut.del");
49 NewName[strlen(NewName) - 8] =
'\0';
50 strcat(NewName,
".cut");
51 rename(OldName, NewName);
54 OldName[strlen(OldName) - 8] =
'\0';
55 strcat(OldName,
".cut.bak.del");
56 NewName[strlen(NewName) - 4] =
'\0';
57 strcat(NewName,
".cut.bak");
58 rename(OldName, NewName);
61 OldName[strlen(OldName) - 12] =
'\0';
62 strcat(OldName,
".srt.del");
63 NewName[strlen(NewName) - 8] =
'\0';
64 strcat(NewName,
".srt");
65 rename(OldName, NewName);
void ConvertPathType(const char *Source, char *Dest, tPathFormat DestFormat)
bool HDD_Exist(const char *FileName)
bool HDD_Unrecycle(const char *FileName)
void MakeUniqueFileName(char *FileName)
void SeparateFileNameComponents(const char *FileName, char *Path, char *Name, char *Ext, int *Index, bool *isRec, bool *isDel)
#define TS_FILE_NAME_SIZE