Bearsampp 2025.8.29
Loading...
Searching...
No Matches
class.action.clearFolders.php
Go to the documentation of this file.
1<?php
2/*
3 *
4 * * Copyright (c) 2022-2025 Bearsampp
5 * * License: GNU General Public License version 3 or later; see LICENSE.txt
6 * * Website: https://bearsampp.com
7 * * Github: https://github.com/Bearsampp
8 *
9 */
10
19{
28 public function __construct($args)
29 {
31
42 Util::clearFolder($bearsamppRoot->getTmpPath(), array('cachegrind', 'composer', 'openssl', 'mailpit', 'xlight', 'npm-cache', 'pip', '.gitignore'));
43
44 // Clear logs
45 Util::clearFolder($bearsamppRoot->getLogsPath(), array('mariadb.log', 'mailpit.err.log', 'mailpit.out.log', 'memcached.err.log', 'memcached.out.log', 'mysql.log', 'postgresql.log', 'xlight.error.log', 'xlight.log', '.gitignore') );
46
57 Util::clearFolder($bearsamppCore->getTmpPath(), array('.gitignore'));
58 }
59}
global $bearsamppRoot
global $bearsamppCore
static clearFolder($path, $exclude=array())