This is a migrated thread and some comments may be shown as answers.

limit subdirectories in ViewPaths

1 Answer 38 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Matt DiPietro
Top achievements
Rank 1
Matt DiPietro asked on 05 Apr 2013, 07:25 PM
Is anyone aware of any way to add a Directory to the ViewPaths, but remove a specific set of sub-directories from the tree?

For instance, my web application will be deployed to multiple web servers that may have different sub-directories in the root of D.  To account for those variances, I want to be able to just add D:\ to the ViewPath so the FileExplorer will automatically account for sub-directories that may be on one server but not another, but I want to remove "D:\Source" on all servers.

Does anyone know of a way to achieve this?

1 Answer, 1 is accepted

Sort by
0
Matt DiPietro
Top achievements
Rank 1
answered on 05 Apr 2013, 09:09 PM
I figured out a way to handle it in my custom FileSystemProvider.vb file.  I just modified the GetDirectories() method to exclude specific sub directories.
Tags
FileExplorer
Asked by
Matt DiPietro
Top achievements
Rank 1
Answers by
Matt DiPietro
Top achievements
Rank 1
Share this question
or