Hi,
I have the following
method in a class:
protected
void removeEmptyFolders(File folder) {
File parentFolder =
folder;
while(parentFolder.listFiles() != null
&& parentFolder.listFiles().length == 0 &&
!parentFolder.equals(documentRoot))
{
parentFolder.delete();
parentFolder = parentFolder.getParentFile();
}
}
parentFolder.delete();
parentFolder = parentFolder.getParentFile();
}
}
I need to move the
method to a a class called FileUtils. Because I don't have the documentRoot as a
variable I need to pass it as a parameter to the new static method.
How do I do this
refactoring with IDEA. If this is not a standard refactoring, should I submit
into Tracker?
Cheers,
Hans
Speijer
