blob: 246455f9e00c9f4a55a11d38cf2f303d398414d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <vdr/videodir.h>
#include <vdr/recording.h>
#include "tools.h"
bool MoveVideoFile(cRecording *Recording,char *NewName)
{
if(!strcmp(Recording->FileName(),NewName))
return true;
int result=MakeDirs(NewName);
if(result)
{
result=RenameVideoFile(Recording->FileName(),NewName);
if(result)
{
// update recordings list
Recordings.AddByName(NewName);
Recordings.Del(Recording,false);
return true;
}
}
return false;
}
|