src/filesystem/Directory.php
public function moveTo(string $destination) : void
    {
        $this->directoryOperation('moveTo', $destination);
        $this->delete();
        $this->path = $destination;
    }
public function moveTo(string $destination) : void
    {
        $this->directoryOperation('moveTo', $destination);
        $this->delete();
        $this->path = $destination;
    }
public function moveTo ( string $ destination ) : void { $ this -> directoryOperation ( 'moveTo' , $ destination ) ; $ this -> delete ( ) ; $ this -> path = $ destination ; }
Recursively move a directory and its contents to another location.

@param string $destination
@throws FileNotFoundException
@throws FilesystemException
@throws \ntentan\utils\exceptions\FileAlreadyExistsException
@throws \ntentan\utils\exceptions\FileNotReadableException
@throws \ntentan\utils\exceptions\FileNotWriteableException
Recursively move a directory and its contents to another location .