added delete codes and fixed various bugs related to custom hashes

This commit is contained in:
Chris
2018-12-25 11:34:43 +01:00
parent bf13df48aa
commit b66a1f2a55
7 changed files with 106 additions and 56 deletions

View File

@@ -18,11 +18,7 @@ class AltfolderStorage implements StorageController
$altname=ALT_FOLDER.DS.$hash;
if(file_exists($altname))
{
mkdir(ROOT.DS.'data'.DS.$hash);
copy($altname,ROOT.DS.'data'.DS.$hash.DS.$hash);
//and don't forget to add it to the duplicate detection system
addSha1($hash,sha1_file($altname));
storeFile($altname,$hash,false);
}
}