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

Update DestinationPath logic to handle short / relative paths #5

Open
DTW-DanWard opened this issue Jun 13, 2017 · 2 comments
Open
Labels

Comments

@DTW-DanWard
Copy link
Owner

If a user does not specify a full path for DestinationPath and that file doesn't already exist (i.e. the Resolve-Path call doesn't work 100% correctly) then assume the user wants the DestinationPath relative to the SourcePath.

Probably something like Join-Path SourcePath DestinationPath but need to handle situation if user has adding ..-type path as prefix.

@DTW-DanWard
Copy link
Owner Author

Actually, should not assume SourcePath. Use same standard as PowerShell - relative to the calling path.

@DTW-DanWard
Copy link
Owner Author

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