data-collector/src/main/java/se/kth/depclean/experiments/App.java
/**
     * Removes all files in the dependencies if the size of the directory is greater than a given value.
     *
     * @param dependenciesDir The directory with the dependencies
     * @param dirSize         The size threshold
     */
Removes all files in the dependencies if the size of the directory is greater than a given value.
@param dependenciesDir The directory with the dependencies
@param dirSize         The size threshold
Removes all files in the dependencies if the size of the directory is greater than a given value . @param dependenciesDir The directory with the dependencies @param dirSize The size threshold
private void checkDependenciesDirSize(String dependenciesDir, BigInteger dirSize) throws IOException {
        BigInteger dependencyFolderSize = FileUtils.sizeOfAsBigInteger(new File(dependenciesDir));
        if (dependencyFolderSize.compareTo(dirSize) > 0) {
            FileUtils.cleanDirectory(new File(dependenciesDir));
        }
    }
private void checkDependenciesDirSize ( String dependenciesDir , BigInteger dirSize ) throws IOException { BigInteger dependencyFolderSize = FileUtils . sizeOfAsBigInteger ( new File ( dependenciesDir ) ) ; if ( dependencyFolderSize . compareTo ( dirSize ) > 0 ) { FileUtils . cleanDirectory ( new File ( dependenciesDir ) ) ; } }
Removes all files in the dependencies if the size of the directory is greater than a given value.
Removes all files in the dependencies if the size of the directory is greater than a given value .