# CRUDlex\SimpleFilesystemFileProcessor

class `SimpleFilesystemFileProcessor`

  An implementation of the {@see FileProcessorInterface} simply using the file system.

  property `basePath`

    protected

    Holds the base path where all files will be stored into subfolders.

  `getPath`($entityName, Entity $entity, $field)

    Constructs a file system path for the given parameters for storing the file of the file field.

    Parameters: | $entityName (string) – the entity name $entity (Entity) – the entity $field (string) – the file field in the entity
    Returns: | string the constructed path for storing the file of the file field

  `__construct`($basePath = '')

    Constructor.

    Parameters: | $basePath (string) – the base path where all files will be stored into subfolders

  `createFile`(Request $request, Entity $entity, $entityName, $field)

    {@inheritdoc}

    Parameters: | $request (Request) – $entity (Entity) – $entityName – $field –

  `updateFile`(Request $request, Entity $entity, $entityName, $field)

    {@inheritdoc} For now, this implementation is defensive and doesn’t delete ever.

    Parameters: | $request (Request) – $entity (Entity) – $entityName – $field –

  `deleteFile`(Entity $entity, $entityName, $field)

    {@inheritdoc} For now, this implementation is defensive and doesn’t delete ever.

    Parameters: | $entity (Entity) – $entityName – $field –

  `renderFile`(Entity $entity, $entityName, $field)

    {@inheritdoc}

    Parameters: | $entity (Entity) – $entityName – $field –