Skip to content

Commit

Permalink
move non existing recording
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Ehrnsperger committed Jan 29, 2024
1 parent 0ff1ded commit 7ae3354
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ template void AppendTextTruncateOnWord<cToSvConcat<0>>(cToSvConcat<0> &target, c
}

struct stat st1, st2;
stat(source.c_str(), &st1);
if (stat(source.c_str(), &st1) != 0) {
esyslog("live: rename. Source %s does not exist", source.c_str());
return false;
}
stat(target.c_str(), &st2);
if (!copy && (st1.st_dev == st2.st_dev)) {
if (!cVideoDirectory::RenameVideoFile(source.c_str(), target.c_str())) {
Expand Down

0 comments on commit 7ae3354

Please sign in to comment.