public void updateShares() {
		this.makeCategoryDirs();

		for (Server server : servers.values()) {
			if(!server.isEnabled()) {
				continue;
			}
			try {
				server.refreshFiles();
				server.saveChanges();
				server.log("Saved " + server.toUpdate.size() + " changes.");
			} catch (Throwable t) {
				t.printStackTrace();
			}
		}

		for (Server server : servers.values()) {
			if(!server.isEnabled()) {
				continue;
			}
			try {
				server.updateServerStats();
				server.updateFileLinks();
				server.log("Updated " + server.toUpdate.size() + " filelinks.");
			} catch (Throwable t) {
				t.printStackTrace();
			}
		}
		saveHistory();
	}