theoretically it also works with directories now