Skip to content

Commit

Permalink
Update File Class
Browse files Browse the repository at this point in the history
  • Loading branch information
hungnguyenhp committed Oct 16, 2020
1 parent d3d1bf7 commit 647c9b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Manager/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ public function cleanLog($path = '', $dayToDelete = 3)
$dateTime = new DateTime("-" . $dayToDelete . " days");
$deleteTime = $dateTime->format($format);
// Lấy modifyTime của file
$getfileTime = filemtime($filename);
$fileTime = date($format, $getfileTime);
$getFileTime = filemtime($filename);
$fileTime = date($format, $getFileTime);
if ($fileTime < $deleteTime) {
$this->chmod($filename, 0777);
$this->remove($filename);
Expand Down Expand Up @@ -234,8 +234,8 @@ public function scanAndZip($scanPath = '', $dayToZip = 3, $zipPath = '')
$SplFileInfo = new SplFileInfo($fileName);
$filename = $SplFileInfo->getPathname();
// Lấy modifyTime của file
$getfileTime = filemtime($filename);
$fileTime = date($format, $getfileTime);
$getFileTime = filemtime($filename);
$fileTime = date($format, $getFileTime);
if ($fileTime < $zipTime) {
if (!file_exists($zipPath)) {
$this->mkdir($zipPath);
Expand Down
2 changes: 1 addition & 1 deletion src/ProjectInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
interface ProjectInterface
{
const VERSION = '2.0.0';
const VERSION = '2.0.0.1';

/**
* Hàm lấy thông tin phiên bản Packages
Expand Down

0 comments on commit 647c9b2

Please sign in to comment.