src/ZendMover/Mover.php
private function processSplFileInfo(\SplFileInfo $file)
    {
        //clear TO directory if needed
        if ($this->getCurrentCommand()->isUsePathReplace()) {
            $this->getCurrentCommand()->setToDirectory(NULL);
        }

        //calc from directory
        $filePathFrom = $this->prepareFilePathFrom($file);

        //calc to directory
        $filePathTo = $this->prepareFilePathTo($file);

        //for debug
        $this->currentFilePathFrom = $filePathFrom;
        $this->currentFilePathTo   = $filePathTo;

        //        \Zend\Debug\Debug::dump($filePathFrom, 'filePathFrom');
        //        \Zend\Debug\Debug::dump($filePathTo, 'filePathTo');
        //        exit();

        $this->validateFileFrom($filePathFrom);
        $this->validateFileTo($filePathTo);

        if (!$this->isMoveIt()) {
            return null;
        }

        $result = $this->doSystemCommand($filePathFrom, $filePathTo);

        return $result;
    }
private function processSplFileInfo(\SplFileInfo $file)
    {
        //clear TO directory if needed
        if ($this->getCurrentCommand()->isUsePathReplace()) {
            $this->getCurrentCommand()->setToDirectory(NULL);
        }

        //calc from directory
        $filePathFrom = $this->prepareFilePathFrom($file);

        //calc to directory
        $filePathTo = $this->prepareFilePathTo($file);

        //for debug
        $this->currentFilePathFrom = $filePathFrom;
        $this->currentFilePathTo   = $filePathTo;

        //        \Zend\Debug\Debug::dump($filePathFrom, 'filePathFrom');
        //        \Zend\Debug\Debug::dump($filePathTo, 'filePathTo');
        //        exit();

        $this->validateFileFrom($filePathFrom);
        $this->validateFileTo($filePathTo);

        if (!$this->isMoveIt()) {
            return null;
        }

        $result = $this->doSystemCommand($filePathFrom, $filePathTo);

        return $result;
    }
prepare path and do move

@param \SplFileInfo $file
@return bool