PardallMarkdown.Receiver (PardallMarkdown v0.2.0) View Source
Process FileSystem
events, directing the paths to their
corresponding pipelines (files and folders) depending on the received events.
Folder Events
Folder events are followed by the :isdir
flag.
:moved_from
- Folder renamed or moved: source path.
- Folder deleted: no related
:moved_to
event will be created, only a single:moved_from
event.
:moved_to
- Folder renamed or moved: destination path, there's a related
:moved_from
event. - Folder moved from an external folder into the watched folder:
there's no related
:moved_from
event, only a single:moved_to
event.- Even if the folder is not empty, only a single
:moved_to
is created for the folder, without any event being created for the folder's contents (not even for subfolders).
- Even if the folder is not empty, only a single
File Events
:moved_from
- File renamed or moved: source path.
- File deleted: no related
:moved_to
event will be created, only a single:moved_from
event.
:moved_to
- File renamed or moved: destination path, there's a related
:moved_from
event. - File moved from an external folder into the watched folder:
there's no related
:moved_from
event, only a single:moved_to
event.
:created
and :modified
- When a file is created, the event
:created
is created. - For each modification, there's an event
:modified
. - Finishing the creation and/or modification of a file ends with
[:modified, :closed]
. - The event
:attribute
is also created during file creation/modification, but it's currently of no use for the purpose of this application.
Link to this section Summary
Functions
Returns whether a file event should be processed or not. Check
the description of PardallMarkdown.Receiver
for more details.
Link to this section Functions
Returns whether a file event should be processed or not. Check
the description of PardallMarkdown.Receiver
for more details.