// Path: src/main/java/org/audiveris/omrdataset/train/AppPaths.java
// public static final Path OUTPUT_PATH = (Main.cli.outputFolder != null) ? Main.cli.outputFolder
//         : Paths.get("data/output");


import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Objects;
import static org.audiveris.omrdataset.train.AppPaths.OUTPUT_PATH;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
//------------------------------------------------------------------------------------------------//
//                                                                                                //
//                                            C l e a n                                           //
//                                                                                                //
//------------------------------------------------------------------------------------------------//
// <editor-fold defaultstate="collapsed" desc="hdr">
//
//  Copyright © Audiveris 2017. All rights reserved.
//
//  This program is free software: you can redistribute it and/or modify it under the terms of the
//  GNU Affero 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 Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License along with this
//  program.  If not, see <http://www.gnu.org/licenses/>.
//------------------------------------------------------------------------------------------------//
// </editor-fold>
package org.audiveris.omrdataset.train;




/**
 * Class {@code Clean} cleans up output data.
 *
 * @author Hervé Bitteur
 */
public class Clean
{
    //~ Static fields/initializers -----------------------------------------------------------------

    private static final Logger logger = LoggerFactory.getLogger(Clean.class);

    //~ Methods ------------------------------------------------------------------------------------
    /**
     * Direct entry point.
     *
     * @param args not used
     * @throws IOException in case of IO problem
     */
    public static void main (String[] args)
            throws IOException
    {
        new Clean().process();
    }

    /**
     * Clean up the output folder.
     *
     * @throws IOException in case of IO problem
     */
    public void process ()
            throws IOException
    {
// Path: src/main/java/org/audiveris/omrdataset/train/AppPaths.java
// public static final Path OUTPUT_PATH = (Main.cli.outputFolder != null) ? Main.cli.outputFolder
//         : Paths.get("data/output");


// Path: src/main/java/org/audiveris/omrdataset/train/Clean.java
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Objects;
import static org.audiveris.omrdataset.train.AppPaths.OUTPUT_PATH;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;

//------------------------------------------------------------------------------------------------//
//                                                                                                //
//                                            C l e a n                                           //
//                                                                                                //
//------------------------------------------------------------------------------------------------//
// <editor-fold defaultstate="collapsed" desc="hdr">
//
//  Copyright © Audiveris 2017. All rights reserved.
//
//  This program is free software: you can redistribute it and/or modify it under the terms of the
//  GNU Affero 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 Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License along with this
//  program.  If not, see <http://www.gnu.org/licenses/>.
//------------------------------------------------------------------------------------------------//
// </editor-fold>
package org.audiveris.omrdataset.train;




/**
 * Class {@code Clean} cleans up output data.
 *
 * @author Hervé Bitteur
 */
public class Clean
{
    //~ Static fields/initializers -----------------------------------------------------------------

    private static final Logger logger = LoggerFactory.getLogger(Clean.class);

    //~ Methods ------------------------------------------------------------------------------------
    /**
     * Direct entry point.
     *
     * @param args not used
     * @throws IOException in case of IO problem
     */
    public static void main (String[] args)
            throws IOException
    {
        new Clean().process();
    }

    /**
     * Clean up the output folder.
     *
     * @throws IOException in case of IO problem
     */
    public void process ()
            throws IOException
    {
        if (OUTPUT_PATH == null) {