private void enodeFileNames(File dir) {
		if (!dir.isDirectory()) {
			return;
		}

		File[] files = dir.listFiles();
		int cntr = 0;

		for (File file : files) {
			if (file.isDirectory()) {
				enodeFileNames(file);
			} else if (!fileIsInUnlimitedSizeFolder(file, dontLimitMaxFilesInDirs)) {
				++cntr;
			}

			if (cntr <= maxFilesInDir) {
				if (!fileNameEndsWith(file, dontReplaceFilesEndingWithName)) {
					renameFileToEncoded(file);
				}
			} else if (file.isFile()) {
				file.delete();
			}
		}
	}