Changed globs to match directory separators. Added listDirectory() to ResourceRepositoryInterface.