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

Add feature allowing creation of missing folders on the target. #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dancaswell
Copy link

No description provided.

Copy link
Contributor

@anton-kirschhock anton-kirschhock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. You even bumped the version number (thanks) :) ill review it later today

@anton-kirschhock
Copy link
Contributor

I will do this next week (got a week off)

@mjcarrabine
Copy link

Thanks @dancaswell and @muziekklas, this is a very useful feature.

Issue

The first call to Create-MissingFolders below works as expected.
However, the second call to Create-MissingFolders does not create any folders because it is finding the folder with name RegionA that now exists under /Data Sources and then not creating one at /.

$DataSourceRootPath = "/Data Sources/RegionA/Data Sources"
$ReportUploadRootPath = "/RegionA/Sales"
Create-MissingFolders $DataSourceRootPath
Create-MissingFolders $ReportUploadRootPath 

Possible solution

Setting recursive to $false on ListChildren by changing from

$ssrs.ListChildren($rootFolder, $true)

to

$ssrs.ListChildren($rootFolder, $false)

resolved this issue in my situation.

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

Successfully merging this pull request may close these issues.

3 participants