class ResourceFileManager {

    public static Set<String> getResourceFolders(String path) {
        Set<String> resources = getResourcePaths(path);
        Set<String> result = new HashSet<>();
        for (String r : resources) {
            String parent = new File(r).getParent();
            result.add(parent);
        }

        return result;
    }

}