mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
32 lines
877 B
PHP
32 lines
877 B
PHP
<?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');
|
||
}
|
||
}
|
||
|
||
}
|