{@inheritDoc}
@see \Psr\Http\Message\UploadedFileInterface::moveTo()
979664
public final function moveTo($targetPath)
    {    
        $path = str_replace(["/", "\\"], DIRECTORY_SEPARATOR, $targetPath);
        $lastDirPos = strripos($path, DIRECTORY_SEPARATOR);
        $dir  = $lastDirPos ? substr($path, 0, $lastDirPos + 1) : null;
        if (!$dir || !is_dir($dir)) {
            throw new InvalidArgumentException("Can't move to: " . $path);
        }
        try {
            if (false === @file_put_contents(
                    $path,
                    (string) $this->getStream())) {
                throw new RuntimeException("Can't move to: " . $path);
            }
        } catch (RuntimeException $e) {
            throw $e;
        }
        $this->body->detach();
        $this->body = null;
        @unlink($this->tmpName);
    }
955337
public function moveMigrationFile()
    {
        $from = base_path('Modules/'.$this->module.'/database/migrations/2016_01_04_225000_create_objects_table.php');
        $to = base_path('database/migrations/'.date('Y_m_d_His').'_create_'.strtolower($this->module).'_table.php');
        $this->files->move($from, $to);
    }
287764
public function move(){
    
        try {
            $this->file->move(Input::get('draggedId'), Input::get('droppedId'));

            return response()->json([
                'status' => 'success'
            ]);
        } 

        catch (Exception $e) {
            return $this->handleError($e);
        }
    }
1344928
public function move($path, $file = null, $overwrite = false)
    {
        if (!$this->isValid()) {
            throw new UploadedFileException('Upload was not successful - '.$this->getErrorMessage());
        }

        $target = $this->getTarget($path, $file);

        if (!$overwrite && is_file($target)) {
            throw new UploadedFileException(sprintf('Could not move the file "%s" to "%s" ( Target file already exists )', $this->getPathname(), $target));
        }

        if (!move_uploaded_file($this->getPathname(), $target)) {
            $error = error_get_last();
            throw new UploadedFileException(sprintf('Could not move the file "%s" to "%s" (%s)', $this->getPathname(), $target, strip_tags($error['message'])));
        }

        chmod($target, 0666 & ~umask());

        return new \SplFileObject($target);
    }
179946
public static function moveTemporaryUploads($content, $destFolder, &$tmpFiles)
    {
        $replace = [];

        $folder = Folder::find_or_make($destFolder);

        /* @var $file File */
        foreach ($tmpFiles as $file) {

            // Keep a copy of the old url to remplace with a new one in the html content
            $oldURL = $file->getURL();

            $name = pathinfo($file->Name, PATHINFO_FILENAME);
            $ext = pathinfo($file->Name, PATHINFO_EXTENSION);

            $file->Name = $name . '_' . time() . '.' . $ext;
            $file->ParentID = $folder->ID;
            $file->write();

            $replace[$oldURL] = $file->getURL();
        }

        $content = str_replace(array_keys($replace), array_values($replace), $content);

        return $content;
    }
557641
public function move($from, $to, $type='sandbox')
	{
		$url = 'https://api.dropbox.com/1/fileops/move';
		$params = array('from_path' => $from,'to_path'=>$to);
		$result = $this->doOAuthCall($url, 'POST', $params, $type);
		$result_body = json_decode($result['body'], true);
		if (!array_key_exists('error', $result_body)) {
			return $result_body;
		} else {
			trigger_error(sprintf(self::E_APIERROR, $result_body['error']));
			return false;
		}
	}
131120
public function move(string $from, string $to, array $config = []): bool
    {
        list($prefixFrom, $pathFrom) = $this->getPrefixAndPath($from);
        list($prefixTo, $pathTo) = $this->getPrefixAndPath($to);

        if ($prefixFrom === $prefixTo) {
            $fs = $this->getFileSystem($prefixFrom);
            $renamed = $fs->rename($pathFrom, $pathTo);

            unset($prefixFrom, $pathFrom, $prefixTo);

            if ($renamed && isset($config['visibility'])) {
                return $fs->setVisibility($pathTo, $config['visibility']);
            }

            unset($fs, $pathTo);

            return $renamed;
        }

        if ($this->copy($from, $to, $config)) {
            return $this->delete($from);
        }

        return false;
    }
1238193
public function move($file) {
        $result = true;
        $this->map(function (FileObject $item) use (&$result, $file) {
            $result = $result && $item->move($file. '/'. $item->getName());
        });
        return $result;
    }
913056
public function move($path)
    {
        if($this->isDirectory()){
            return false;
        }
        $path = $this->relativeToAbsolute($path);
        if (($ret = @rename($this->filePath, $path)) === true) {
            $this->filePath = $path;
        }

        return $ret;
    }
1052219
function MoveTo (opts) {
    MoveTo.superclass.constructor.call(this, opts)

    this.endPosition = util.copy(opts.position)
}
711508
private function _moveUploadedFile($fileInfo, $location, $overwrite)
    {
        $isDone = false;

        if (!file_exists($location) || $overwrite) {
            $isDone = move_uploaded_file($fileInfo['tmp_name'], $location);

            if ($isDone) {
                $isDone = @chmod($location, 0644);
            }
        }

        return $isDone;
    }
680197
public function moveDataFile($from, $to)
    {
        if (str_contains($from, '*.')) {
            $this->moveFilesWildcard($from, $to);

            return;
        }

        if (file_exists($from = $this->dataDir($from))) {
            $this->mkDir(dirname($to = $this->dataDir($to)));

            rename($from, $to);
        }
    }
1322846
public function moveFile($fileName, $destinationName){
        return move_uploaded_file($this->getPathBase() . $fileName, $this->getPathBase() . $destinationName);
    }
1075440
public static void moveFile(@NotNull Path from, @NotNull Path to) throws IOException {
		Validate.isTrue(isFileExists(from), "%s is not exist or not a file", from);
		Validate.notNull(to);
		Validate.isTrue(!isDirExists(to), "%s is  exist but it is a dir", to);

		Files.move(from, to);
	}
331133
public function copy($destination)
  {
    $f = $this->getValue();

    if ($f) {
      $arr = pathinfo($destination);
      if ($f instanceof UploadedFile) {
        return $f->move($arr['dirname'], $arr['basename']);
      } else {
        if (!@copy($f->getRealPath(), $destination)) {
          $error = error_get_last();

          throw new FileException(
            sprintf(
              'Could not move the file "%s" to "%s" (%s)',
              $f->getPathname(),
              $destination,
              strip_tags($error['message'])
            )
          );
        }

        return new \Symfony\Component\HttpFoundation\File\File($destination);
      }
    }

    return false;
  }
1152897
public function move(int $from, int $to)
    {
        $value = $this->list[$from];

        unset($this->list[$from]);

        array_splice($this->list, $to, 0, $value);
    }
921563
public function rename($to) {

		$from		= $this->filename;

		// name is unchanged, nothing to do

		if($from !== $to) {

			$oldpath	= $this->folder->getPath() . $from;
			$newpath	= $this->folder->getPath() . $to;
	
	
			if(file_exists($newpath)) {
				throw new FilesystemFileException("Rename from '$oldpath' to '$newpath' failed. '$newpath' already exists.", FilesystemFileException::FILE_RENAME_FAILED);
			}
	
			if(@rename($oldpath, $newpath)) {

				$this->renameCacheEntries($to);

				// set new filename

				$this->filename = $to;

				// re-read fileinfo
				
				$this->fileInfo	= new \SplFileInfo($newpath);

				self::$instances[$newpath] = $this;
				unset(self::$instances[$oldpath]);
			}
	
			else {
				throw new FilesystemFileException(sprintf("Rename from '%s' to '%s' failed.", $oldpath, $newpath), FilesystemFileException::FILE_RENAME_FAILED);
			}

		}
		
		return $this;

	}