Removed unused method
Added limit attribute for directory provider
Merge pull request #4330 from Black09/directoryprovider-limit

Added limit attribute for the directory provider