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

CopyFile task swallows file not found message #36

Open
AkosLukacs opened this issue Feb 2, 2012 · 0 comments
Open

CopyFile task swallows file not found message #36

AkosLukacs opened this issue Feb 2, 2012 · 0 comments

Comments

@AkosLukacs
Copy link
Contributor

Or something like that...

Steps to reproduce:

Deploayment definition:

            DeploymentStepsFor(Test1, t => {
                string temp = @"\\localhost\c$\temp";
                string sub = temp + "\\sub";
                t.CreateEmptyFolder(sub);
                t.CopyFile(temp + "\\dummy_exists.txt").ToDirectory(sub);
                t.CopyFile(temp + "\\dummy_does_not_exist.txt").ToDirectory(sub);
                t.CopyFile(temp + "\\dummy_exists.txt").ToDirectory(sub);
            });

Create one file

Create a file at \\localhost\c$\temp\dummy_exists.txt

Run it :)

Output:

[Good ] 'C:\temp\sub' already exists.
[copy][overwrite] '\\localhost\c$\temp\dummy_exists.txt' -> 'C:\temp\sub\dummy_exists.txt'
C:\temp\sub\dummy_exists.txt
[Good ] Copy '\\localhost\c$\temp\dummy_exists.txt' to 'C:\temp\sub'
[copy][overwrite] '\\localhost\c$\temp\dummy_exists.txt' -> 'C:\temp\sub\dummy_exists.txt'
C:\temp\sub\dummy_exists.txt
[Good ] Copy '\\localhost\c$\temp\dummy_exists.txt' to 'C:\temp\sub'

I think it should complain, that "dummy_does_not_exist.txt" does not exist!
Using latest source from github.

@AkosLukacs AkosLukacs mentioned this issue Feb 2, 2012
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

No branches or pull requests

1 participant