protected function moveUpSectionDirectories_clbk($m)
 {
     $prefix = $m[1];
     $dir = $m[2];
     $file_path = $m[3];
     $suffix = $m[4];
     $root_dir = $this->getTempDir() . '/course_files';
     // ファイル移動
     SharingCart_FileSystem::move($root_dir . '/' . $dir . '/' . $file_path, $root_dir . '/' . $file_path, SharingCart_FileSystem::OVERWRITE);
     // ディレクトリが空になったら削除する
     SharingCart_FileSystem::rmdir($root_dir . '/' . $dir);
     return $prefix . $file_path . $suffix;
 }
 protected function decodeLinks_clbk($m)
 {
     $prefix = $m[1];
     $source = $m[2];
     $suffix = $m[3];
     // 絶対パスが指定されている場合は変換しない
     if (preg_match('@^\\w+?\\://@', $source)) {
         return $m[0];
     }
     $target = $this->prefs->newdirectoryname . '/' . $source;
     $root = $this->getTempDir() . '/course_files/';
     // 一時ディレクトリ内でコースファイルをセクションディレクトリに移動
     SharingCart_FileSystem::move($root . $source, $root . $target, SharingCart_FileSystem::OVERWRITE);
     return $prefix . $target . $suffix;
 }