Fixed trailing slash

This commit is contained in:
tokslaw7
2023-06-02 08:35:17 +00:00
parent a310577190
commit edb6681b73
+3 -3
View File
@@ -6,10 +6,10 @@ use CodeIgniter\Model;
class UploadManager extends Model
{
public $savePath ="/opt/wrenchboard/TEST"; ////10.0.0.40/wrenchboard/TEST/";
public $savePath ="/opt/wrenchboard/TEST/"; ////10.0.0.40/wrenchboard/TEST/";
public function reciveUpload($in,$out){
mkdir($this->savePath.rand(10000,999999), 0777, true);
// mkdir($this->savePath.rand(10000,999999), 0777, true);
if (!file_exists($this->savePath.'CONTRACTS')) {
mkdir($this->savePath.'CONTRACTS', 0777, true);
}
@@ -21,7 +21,7 @@ class UploadManager extends Model
if (!file_exists($this->savePath.'JOBS')) {
mkdir($this->savePath.'JOBS', 0777, true);
}
//*/
return 0;
}