Home Dashboard Directory Help
Search

DSC File Resource and Directory Paths by PowerShellDon


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 831487
Opened: 3/10/2014 8:27:31 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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.:

c:\my\folder\path\

Produces an error, whereas:

c:\my\folder\path

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.
Details
Sign in to post a comment.
Sign in to post a workaround.