2include_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/classes/general/virtual_file.php");
25 function Copy($source, $target, $bRewrite =
true);
26 function Move($source, $target, $bRewrite =
true);
45 private static $instance;
50 include_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/classes/general/virtual_io_filesystem.php");
62 if (!isset(self::$instance))
65 self::$instance =
new $c;
68 return self::$instance;
80 $numArgs = func_num_args();
85 for (
$i = 0;
$i < $numArgs;
$i++)
87 $arg = func_get_arg(
$i);
106 return $this->io->CombinePath($arParts);
117 return $this->io->RelativeToAbsolutePath($relativePath);
122 return $this->io->SiteRelativeToAbsolutePath($relativePath,
$site);
133 return $this->io->GetPhysicalName(
$path);
138 return $this->io->GetLogicalName(
$path);
149 return $this->io->ExtractNameFromPath(
$path);
160 return $this->io->ExtractPathFromPath(
$path);
169 return $this->io->ValidatePathString(
$path);
178 return $this->io->ValidateFilenameString(
$filename);
187 return $this->io->RandomizeInvalidFilename(
$filename);
198 return $this->io->DirectoryExists(
$path);
209 return $this->io->FileExists(
$path);
220 return $this->io->GetDirectory(
$path);
231 return $this->io->GetFile(
$path);
243 return $this->io->OpenFile(
$path, $mode);
254 return $this->io->Delete(
$path);
265 public function Copy($source, $target, $bRewrite =
true)
267 return $this->io->Copy($source, $target, $bRewrite);
278 public function Move($source, $target, $bRewrite =
true)
280 return $this->io->Move($source, $target, $bRewrite);
285 return $this->io->Rename($source, $target);
295 $this->io->ClearCache();
306 return $this->io->CreateDirectory(
$path);
316 return $this->io->GetErrors();
RandomizeInvalidFilename($filename)
ValidateFilenameString($filename)
Move($source, $target, $bRewrite=true)
SiteRelativeToAbsolutePath($relativePath, $site=null)
RelativeToAbsolutePath($relativePath)
ExtractNameFromPath($path)
ExtractPathFromPath($path)
ValidatePathString($path)
Copy($source, $target, $bRewrite=true)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
ValidateFilenameString($filename)
Move($source, $target, $bRewrite=true)
SiteRelativeToAbsolutePath($relativePath, $site=null)
RelativeToAbsolutePath($relativePath)
ExtractNameFromPath($path)
ExtractPathFromPath($path)
ValidatePathString($path)
Copy($source, $target, $bRewrite=true)
$_SERVER["DOCUMENT_ROOT"]