Windows PowerShell Home
DSC File Resource and Directory Paths
3/10/2014 8:27:31 AM
User(s) can reproduce this bug
Currently, the DSC File resource can accept a folder (directory) path for the SourcePath and DestinationPath settings. However, if the path has a railing backslash or slash, the File resource produces an error. E.g.:
Produces an error, whereas:
Does not. While this is probably the correct behavior at an underlying technical level, the error produced oesn't make it easy for someone to deduce that the trailing backslash is the problem. Most of Windows will accept a directory path that includes a trailing backslash, so this syntax feels overly picky. Consider revising the File resource to accept directory paths that include a trailing backslash.
How often does this happen?
Have you seen this problem before in this product?
Yes, this happens in all previous versions
to post a comment.
Please enter a comment.
to post a workaround.
Please enter a workaround.
© 2014 Microsoft