Fire file modified event.

@param $event
@param $resource
@param $path
514116
public function fireEvent($event, $resource, $path)
    {
        if ($this->eventWasProcessed($event, $resource, $path)) {
            return;
        }

        $this->showEventMessage($event, $path);

        if ($this->isConfig($path)) {
            return;
        }

        if ($this->firedOnlyOne($event, $path)) {
            return;
        }

        $this->loader->loadEverything();

        if ($this->queueTestSuites($path)) {
            return;
        }

        $this->dataRepository->queueAllTests();
    }
1033470
public function move(ResourceActionEvent $event)
    {
        $resourceNode = $event->getResourceNode();
        $data = $event->getData();
        $parent = isset($data['destination']['autoId']) && isset($data['destination']['meta']['type']) && 'directory' === $data['destination']['meta']['type'] ?
            $this->manager->getById($data['destination']['autoId']) :
            null;

        if (!empty($parent)) {
            $movedResource = $this->manager->move($resourceNode, $parent);
            $event->setResponse(
                new JsonResponse($this->serializer->serialize($movedResource), 200)
            );
        } else {
            $event->setResponse(
                new JsonResponse(null, 500)
            );
        }
    }
434527
public function dispatchEvent($event, ...$arguments)
    {
        $this->dispatchEventToEventCallbacks($event, $arguments);

        $this->dispatchEventToEventHandler($event, $arguments);
    }
830481
protected function fireEvent($event)
    {
        $this->app['events']->fire(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]);
    }
1123730
public static function EnsureDirExists(Event $event, $path)
	{
		if (!is_dir($path)) {
			mkdir($path, 0777, true);
			if (!is_dir($path)) {
				throw new \Exception('Path Not Found: '.$path);
			}
			if ($event->getIO()->isVerbose() === true) {
				$event->getIO()->write(sprintf('Created Directory <info>%s</info>', $path));
			}
		}
	}
1023176
def dropEvent( self, event ):
        
        if event.mimeData().hasUrls():
            url      = event.mimeData().urls()[0]
            filepath = url.toLocalFile()
            if filepath:
                self.setFilepath(filepath)
383080
def on_modified(self, event):
        
        self._logger.debug('Detected modify event on watched path: %s', event.src_path)

        self._process_event(event)
393991
public function onCopy(CopyResourceEvent $event)
    {
        /** @var File $webResource */
        $webResource = $event->getResource();

        $file = $this->copy($webResource, $event->getCopy());
        $event->setCopy($file);
        $event->stopPropagation();
    }
1152
def on_modified(self, event):
        """"""
        path = event.src_path
        if path not in self.saw:
            self.saw.add(path)
            self.recompile(path)
1262590
public function updateStream($path, $resource, $mimeType = null)
    {
        return $this->getFile($path)->update($resource, $mimeType);
    }
234920
public function onDelete(DeleteResourceEvent $event)
    {
        /** @var File $file */
        $file = $event->getResource();

        $pathName = $this->filesDir.DIRECTORY_SEPARATOR.$file->getHashName();

        if (file_exists($pathName)) {
            $event->setFiles([$pathName]);
        }

        $event->stopPropagation();
    }
1239387
public static function EnsureFileExists(Event $event, $path)
	{
		if (!is_dir(dirname($path))) {
			mkdir(dirname($path), 0777, true);
			touch($path);
			if (!file_exists($path)) {
				throw new \Exception('File Not Found: '.$path);
			}
			if ($event->getIO()->isVerbose() === true) {
				$event->getIO()->write(sprintf('Created File <info>%s</info>', $path));
			}
		}
	}
234296
private function fireEvent($event, ...$params)
    {
        if (!$this->eventManager) {
            return;
        }

        $this->eventManager->handle($event, ...$params);
    }
1212624
public function about(ResourceActionEvent $event)
    {
        $event->setResponse(
            new JsonResponse($this->serializer->serialize($event->getResourceNode()))
        );
        $event->stopPropagation();
    }
330225
protected function publish($resource, $event, array $params=[])
    {
        $eventName = $this->eventName("$resource.$event");

        $this->callOnListeners($eventName, $params);
    }
1343670
public function onUpdateFile(CustomActionResourceEvent $event)
    {
        if (!$this->request) {
            throw new NoHttpRequestException();
        }

        $params = array();
        $params['_controller'] = 'ClarolineCoreBundle:File:updateFileForm';
        $params['file'] = $event->getResource()->getId();
        $subRequest = $this->request->getCurrentRequest()->duplicate(array(), null, $params);
        $response = $this->httpKernel->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
        $event->setResponse($response);
    }
1310723
private function fireEvent($event)
    {
        $env = $this->formatEventName($event);

        if (emitter()->bound($env)) {
            emitter()->emit($env, $this);
        }
    }