public void removeRule(String ruleNumber){
        String[] numberSplit = ruleNumber.split("-");

        Set<String> directoryKeys = directories.keySet();
        int i = 0;
        int j;
        for(String key: directoryKeys){
            j = 0;
            for(Permission permission: directories.get(key).getPermissions()){
                if(i == Integer.parseInt(numberSplit[0])  && j == Integer.parseInt(numberSplit[1])){
                    directories.get(key).getPermissions().remove(j);
                    return;
                }
                j++;
            }
            i++;
        }

        Set<String> fileKeys = files.keySet();
        for(String key: fileKeys){
            j=0;
            for(Permission permission: files.get(key).getPermissions()){
                if(i == Integer.parseInt(numberSplit[0])  && j == Integer.parseInt(numberSplit[1])){
                    files.get(key).getPermissions().remove(j);
                    return;
                }
                j++;
            }
            i++;
        }

    }