Initial commit

This commit is contained in:
Rayhan Hanaputra
2025-10-10 22:18:06 +07:00
committed by GitHub
commit ea02892f14
1246 changed files with 289342 additions and 0 deletions
@@ -0,0 +1,30 @@
<?php
namespace Models;
class FileModel {
public function __construct(){}
public function createFile($filePath, $fileContents){
return @file_put_contents($filePath, $fileContents);
}
public function getFile($filePath){
return @file_get_contents($filePath);
}
public function copyFile($filePathSrc, $filePathDst){
return copy($filePathSrc, $filePathDst);
}
public function createDir($dirPath){
return mkdir($dirPath, 0777);
}
}