mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Show available space on server test
This commit is contained in:
parent
e6f658f8d0
commit
383029df24
@ -44,7 +44,7 @@ class TestServer extends BuildTask
|
|||||||
if (is_writable(TEMP_FOLDER)) {
|
if (is_writable(TEMP_FOLDER)) {
|
||||||
echo self::success(
|
echo self::success(
|
||||||
'TMP (cache) dir <b>'.TEMP_FOLDER.'</b> dir is writable.'
|
'TMP (cache) dir <b>'.TEMP_FOLDER.'</b> dir is writable.'
|
||||||
.'Available space: '.self::formatBytes(disk_free_space(TEMP_FOLDER))
|
.' Available space: '.self::formatBytes(disk_free_space(TEMP_FOLDER))
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
echo self::error('TMP (cache) dir <b>'.TEMP_FOLDER.'</b> dir is no writable!');
|
echo self::error('TMP (cache) dir <b>'.TEMP_FOLDER.'</b> dir is no writable!');
|
||||||
@ -80,7 +80,7 @@ class TestServer extends BuildTask
|
|||||||
if (is_writable(ASSETS_DIR)) {
|
if (is_writable(ASSETS_DIR)) {
|
||||||
echo self::success(
|
echo self::success(
|
||||||
'Assets dir <b>'.ASSETS_DIR.'</b> dir is writable.'
|
'Assets dir <b>'.ASSETS_DIR.'</b> dir is writable.'
|
||||||
.'Available space: '.self::formatBytes(disk_free_space(ASSETS_DIR))
|
.' Available space: '.self::formatBytes(disk_free_space(ASSETS_DIR))
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
echo self::error('Assets dir <b>'.ASSETS_DIR.'</b> dir is no writable!');
|
echo self::error('Assets dir <b>'.ASSETS_DIR.'</b> dir is no writable!');
|
||||||
|
Loading…
Reference in New Issue
Block a user