Copy-File does not create folder when copying a single file

I brought this up in the General Discussion forum here, but it is something I’d like to get fix (assuming its not working as designed).

When the destination is a file, the path does not get created if it doesn’t exist. I think it should.

Or the function should have a switch that allows the path to be created, or not, whether the destination is a folder or a file.

This will be fixed in the next version.

1 Like