GetFiles with FileMask is skipping files
Hi, I'm using the following PS code to recursively download files. The files are mostly pdf files except for txt files that I create for testing. There is one file that will copy no matter what I use: I can use FileZilla or any other FTP client and I get a 550 permission denied on it. However, PS does not throw any sort of exception. The IsSuccess shows success, and of course the file doesn't copy. The session log doesn't show 550 or any other error; it just shows that it is skipping the file. That's the first issue.
The second issue is even on other files, that I can manually copy, my log shows that it is skipping the file. I'm trying to avoid attaching the log because the data is extremely sensitive data. The filenames contain names to my client's other customers. I would have to do a lot of redacting to attach a log file.
Any ideas on what is happening?
The second issue is even on other files, that I can manually copy, my log shows that it is skipping the file. I'm trying to avoid attaching the log because the data is extremely sensitive data. The filenames contain names to my client's other customers. I would have to do a lot of redacting to attach a log file.
Any ideas on what is happening?
$transferOptions.FileMask = $f.FullName + $excludeDir $transfer = $session.GetFiles($getFiles, $localPath, $false, $transferOptions).Check()