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

Problem with Pull method in AfcService #84

Closed
btraktirnik opened this issue Feb 11, 2025 · 2 comments · Fixed by #85
Closed

Problem with Pull method in AfcService #84

btraktirnik opened this issue Feb 11, 2025 · 2 comments · Fixed by #85

Comments

@btraktirnik
Copy link

btraktirnik commented Feb 11, 2025

Hi,

The Pull method isn't working. I assume that the problem is because the inner implementation of the Pull method contains the following line which is problematic:

if (OperatingSystem.IsWindows()) {
    // Windows filesystems can't cope with ':' so we replace these with '-'
    dstPath = dstPath.Replace(':', '-');
}

The above code will convert for example: c:\users\user1\docs to c-\users\user1\docs which is invalid path.

Thanks,
Boris.

@artehe
Copy link
Owner

artehe commented Feb 12, 2025

Yes you're right that could be the case if you're writing to an absolute path in Windows that includes a driver letter at the start.

I remember putting this in as some of the files I was pulling out had ':' in the path, but when I was testing it I was only using relative paths 🤦

PR #85 should fix this (hopefully permanently), if you could test it out and verify for me that'd be great!

@btraktirnik
Copy link
Author

Working great
Thanks!

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

Successfully merging a pull request may close this issue.

2 participants