Horde_Vfs_Base::move PHP 메소드

move() 공개 메소드

Moves a file through the backend.
public move ( string $path, string $name, string $dest, boolean $autocreate = false )
$path string The path of the original file.
$name string The name of the original file.
$dest string The destination file name.
$autocreate boolean Automatically create directories?
    public function move($path, $name, $dest, $autocreate = false)
    {
        $this->copy($path, $name, $dest, $autocreate);
        if ($this->isFolder($path, $name)) {
            $this->deleteFolder($path, $name, true);
        } else {
            $this->deleteFile($path, $name);
        }
    }