Files
OMS/app/taskmgr/task.php
2025-12-28 23:13:25 +08:00

32 lines
877 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class taskmgr_task{
function post_install($options){
//添加导出任务需要的文件夹路径,本地缓存目录
if(!is_dir(DATA_DIR.'/export/cache')){
utils::mkdir_p(DATA_DIR.'/export/cache');
}
//导出本地数据文件目录
if(!is_dir(DATA_DIR.'/export/file')){
utils::mkdir_p(DATA_DIR.'/export/file');
}
//下载ftp模式的文件本地缓存目录
if(!is_dir(DATA_DIR.'/export/tmp_local')){
utils::mkdir_p(DATA_DIR.'/export/tmp_local');
}
//上传ftp模式的文件本地缓存目录
if(!is_dir(DATA_DIR.'/export/tmp_remote')){
utils::mkdir_p(DATA_DIR.'/export/tmp_remote');
}
}
}