public int getNumberOfFilesInDirectory(DirectoryInfo info) {
		Iterable<EntityInfo> iterator = null;
		try {
			iterator = listDirectory(info.getFullPath());
		} catch (NotADirectoryException e) {
			e.printStackTrace();
			return 0;
		} catch (PathNotFoundException e) {
			e.printStackTrace();
			return 0;
		} catch (AccessDeniedException e) {
			e.printStackTrace();
		}
		int count = 0;
		for (@SuppressWarnings("unused")
			EntityInfo it : iterator)
			count++;
		return count;
	}