ignore broken links so playback can go on
This commit is contained in:
parent
0456464ac0
commit
2e73d733f2
campcaster/src/modules/storageServer/var
|
@ -369,11 +369,13 @@ class BasicStor {
|
||||||
$token = StoredFile::CreateGunid();
|
$token = StoredFile::CreateGunid();
|
||||||
if (!is_null($realFname)) {
|
if (!is_null($realFname)) {
|
||||||
$linkFname = $CC_CONFIG['accessDir']."/$token.$ext";
|
$linkFname = $CC_CONFIG['accessDir']."/$token.$ext";
|
||||||
if (!is_file($realFname) && !is_link($realFname)) {
|
//broken links are ignored by the player, do not worry about it here
|
||||||
|
/* if (!is_file($realFname) && !is_link($realFname)) {
|
||||||
return PEAR::raiseError(
|
return PEAR::raiseError(
|
||||||
"BasicStor::bsAccess: real file not found ($realFname)",
|
"BasicStor::bsAccess: real file not found ($realFname)",
|
||||||
GBERR_FILEIO);
|
GBERR_FILEIO);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if (! @symlink($realFname, $linkFname)) {
|
if (! @symlink($realFname, $linkFname)) {
|
||||||
return PEAR::raiseError(
|
return PEAR::raiseError(
|
||||||
"BasicStor::bsAccess: symlink create failed ($linkFname)",
|
"BasicStor::bsAccess: symlink create failed ($linkFname)",
|
||||||
|
|
Loading…
Reference in New Issue