Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory and File Listing #15

Open
sturakov opened this issue Apr 27, 2012 · 1 comment
Open

Directory and File Listing #15

sturakov opened this issue Apr 27, 2012 · 1 comment
Labels

Comments

@sturakov
Copy link
Collaborator

As we discussed, the way that the directory paths and file paths are populated in the code, currently, might cause an issue..Particularly with deeply nested folder paths and large amounts of files.

I wanted to make this an issue because a possible StackOverflowError might occur when the scanner is looking for the directories to scan. Or the list of directories might eat up a lot of memory on a memory constrained machine.

I'm currently looking into a possible solution to traverse the directories in manageable chunks/iterations.
If anyone has any ideas, please feel free to mention them.

@sturakov
Copy link
Collaborator Author

An Update:
It seems that C# does not have a manual way to iterate through folders. C# can grab chunks of folder or return pattern
matched folders, but not in an index sort of way.

After some research, I've found something that might be worth looking into...A C++ method of traversing paths might allow
to traverse one path at a time.

I'll write more after I debug and test the sample code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant