src/Subjects/MoveFilesSubject.php
/**
     * Prepares the new source directory based on the passed serial.
     *
     * @param string $serial The serial to prepare the new source directory with
     *
     * @return string The new source directory
     */
Prepares the new source directory based on the passed serial.
@param string $serial The serial to prepare the new source directory with

@return string The new source directory
Prepares the new source directory based on the passed serial . @param string $serial The serial to prepare the new source directory with @return string The new source directory
protected function prepareNewSourceDir(string $serial) : string
    {
        $newSourceDir = $this->getNewSourceDir($serial);
        if ($this->isDir($newSourceDir) === false) {
            $this->mkdir($newSourceDir);
        }
        return $newSourceDir;
    }
protected function prepareNewSourceDir ( string $ serial ) : string { $ newSourceDir = $ this -> getNewSourceDir ( $ serial ) ; if ( $ this -> isDir ( $ newSourceDir ) === false ) { $ this -> mkdir ( $ newSourceDir ) ; } return $ newSourceDir ; }
Prepares the new source directory based on the passed serial.
Prepares the new source directory based on the passed serial .
// initialize the path for the new source directory // query whether the new source directory has to be created or not // return the new source directory