Exemplo n.º 1
0
 function s_file_exists($path)
 {
     if (IS_SAE) {
         $ret = file_exists($path);
         if (!$ret) {
             $_s = new SaeStorage();
             $path = str_replace(FCPATH, '', $path);
             $_f = _s_get_path($path);
             return $_s->fileExists($_f['domain'], $_f['filename']);
         }
     } else {
         return file_exists($path);
     }
 }
Exemplo n.º 2
0
 function s_write($filepath, $content)
 {
     $_s = new SaeStorage();
     //初始化Storage对象
     $_f = _s_get_path($filepath);
     return $_s->write($_f['domain'], $_f['filename'], $content);
 }