TechieGuy12 / FileWatcher

A file and folder monitor that can send notifications, perform actions, or execute a command when a file or folder is changed.
MIT License
106 stars 27 forks source link

typos in wiki #26

Open Eric-RemoteNC opened 1 year ago

Eric-RemoteNC commented 1 year ago

On the wiki page, the example

<watches>
    <watch>
        <path>C:\Temp</path>
        <actions>
            <action>
                <triggers>
                    <trigger>Create</trigger>
                </triggers>
                <type>Move</type>
                <source>[fullpath]</source>
                <destination>C:\Temp2\[fullpath]</destination>
                <verify>true</verify> 
            </action>
        <actions>
    </watch>
</watches>

should be

<watches>
    <watch>
        <path>C:\Temp</path>
        <actions>
            <action>
                <triggers>
                    <trigger>Create</trigger>
                </triggers>
                <type>Move</type>
                <source>[exactpath]</source>
                <destination>C:\Temp2\[fullpath]</destination>
                <verify>true</verify> 
            </action>
        </actions>
    </watch>
</watches>

The confusion took me some time to figure out. As an example provided by the author, it'd better work without too much understanding. Also I suggest using Copy instead of Move to make people easier to understand without the risk of missing files.

I know this is a tiny problem but I just hope people in need can benefit from your great work without any issue in the first try. Thank you so much for your great work.