<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2008-2020 Andrew Ziem
    https://www.bleachbit.org

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

    @app Filezilla
    @url https://filezilla-project.org/
    @os Windows, Linux
    @cleanerversion v1.5.0
    @cleanerdate 2019-03-21
    @cleanerby Andrew Ziem (2009-06-24 - 2009-10-04) & Tobias B. Besemer (2019-03-13 - 2019-03-21)
    @tested ok v???, Windows 7
    @testeddate 2019-03-10 (... with an old version of the cleaner!)
    @testedby https://github.com/Tobias-B-Besemer
    @note As long we have no command="xml", we need to delete the complete file!

-->
<cleaner id="filezilla">
  <label>Filezilla</label>
  <description>File transfer client</description>
  <var name="profile">
    <value os="windows">%AppData%\FileZilla</value>
    <value os="linux">~/.filezilla</value>
  </var>
  <option id="mru">
    <label>Most recently used</label>
    <description>Delete the usage history</description>
    <action command="delete" search="file" path="$$profile$$/recentservers.xml"/>
  </option>
  <!-- Option not for end-user !!!
  <option id="last_server_path">
    <label>Last Server Path</label>
    <description>Delete the last server path</description>
    <warning>As long we have no command="xml", we need to delete the complete file! Use this option only if you know what you do!</warning>
    <action command="delete" search="file" path="$$profile$$/filezilla.xml"/>
    -->
  <!--
    This is how IMHO a CleanerML-XML-Cleaning-Syntax maybe can look like (Part 5). Tobias.
    <action command="xml" search="file" path="$$profile$$/filezilla.xml" element="FileZilla3/Settings/Setting" attribute="name=Last Server Path"/>
    Explanation: Deletes with a "name=value" as value of "attribute" the content of "<element attribute="value">".
    Example:
    <FileZilla3 version="3.32.0" platform="windows">
        <Settings>
            <Setting name="Last Server Path">ftp://ftp.demo.org</Setting>
    -> Deletes "ftp://ftp.demo.org"
    -->
  <!--
    For later! Would be Example Part4...
    Explanation: Deletes with "/*" at the end the content of the element.
    <action command="xml" search="file" path="$$profile$$/filezilla.xml" element="FileZilla3/Settings/LastServer/*"/>
    -->
  <!--
  </option>
  -->
</cleaner>
