public Map<String, String> getFileLocks(String dir) {
		Map<String, String> map = new HashMap<>();
		
		String currentPid = null;
		for(String line : getFileLocksLines(dir)) {
			if(line == null || line.trim().length() == 0) {
				continue;
			}
			if(line.startsWith("p")) {
				currentPid = line.substring(1);
			} else if(line.startsWith("n")) {
				map.put(line.substring(1), currentPid);
			}
		}
		
		return map;
	}