Java Utililty Methods Path Crop

List of utility methods to do Path Crop

Description

The list of methods to do Path Crop are organized into topic(s).

Method

FilecropFile(File cropper, File file)
Crop a file
if (file.getPath().startsWith(cropper.getPath())) {
    return new File(file.getPath().replace(cropper.getPath(), ""));
return file;