public function sync($dirId)
    {
        $dir = $this->getDirOrFail($dirId);
        $this->fileDB->syncWithFs($dir, 1);
        return $this->redirectTo('index', [$dir->getId()]);
    }
public function sync($dirId)
    {
        $dir = $this->getDirOrFail($dirId);
        $this->fileDB->syncWithFs($dir, 1);
        return $this->redirectTo('index', [$dir->getId()]);
    }
public function sync ( $ dirId ) { $ dir = $ this -> getDirOrFail ( $ dirId ) ; $ this -> fileDB -> syncWithFs ( $ dir , 1 ) ; return $ this -> redirectTo ( 'index' , [ $ dir -> getId ( ) ] ) ; }
Synchronize the filesystem into the db in this folder.

@param int $dirId

@return RedirectResponse
Synchronize the filesystem into the db in this folder .