private function renameSplitFiles()
    {
        $c = 1;
        $wholeFile = new File($this->getArchivePath());

        foreach ($this->getSplitFiles() as $file/* @var $file SplFileInfo */) {
            $new_filename = sprintf("%s/%spart%s.%s",
                $wholeFile->getPath(),
                basename($wholeFile->getFilename(), $wholeFile->getExtension()),
                $c++,
                $wholeFile->getExtension()
            );

            rename($file->getRealPath(), $new_filename);
        }
    }
private function renameSplitFiles()
    {
        $c = 1;
        $wholeFile = new File($this->getArchivePath());

        foreach ($this->getSplitFiles() as $file/* @var $file SplFileInfo */) {
            $new_filename = sprintf("%s/%spart%s.%s",
                $wholeFile->getPath(),
                basename($wholeFile->getFilename(), $wholeFile->getExtension()),
                $c++,
                $wholeFile->getExtension()
            );

            rename($file->getRealPath(), $new_filename);
        }
    }
private function renameSplitFiles ( ) { $ c = 1 ; $ wholeFile = new File ( $ this -> getArchivePath ( ) ) ; foreach ( $ this -> getSplitFiles ( ) as $ file /* @var $file SplFileInfo */ ) { $ new_filename = sprintf ( "%s/%spart%s.%s" , $ wholeFile -> getPath ( ) , basename ( $ wholeFile -> getFilename ( ) , $ wholeFile -> getExtension ( ) ) , $ c ++ , $ wholeFile -> getExtension ( ) ) ; rename ( $ file -> getRealPath ( ) , $ new_filename ) ; } }
Rename files we split using the naming convention in config.
Rename files we split using the naming convention in config .