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);
        }
    }
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);
        }
    }
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 ) ; } }
Move a data file or many using wildcards.

@param $from
@param $to
Move a data file or many using wildcards .