error using move file when folder is empty
I am using this C# code to move files:
It works fine unless the folder is empty then I get this error.
THanks.
session.MoveFile("/parcs/download/PNB/*.xml", "/parcs/download/PNB/Processed/");
How do I fix this so that it is okay with an empty folder?Message:/parcs/download/PNB/*.xml not found.;
Source:WinSCPnet;
Type:WinSCP.SessionRemoteException;
Base Exception:WinSCP.SessionRemoteException: /parcs/download/PNB/*.xml not found.
at WinSCP.Session.MoveFile(String sourcePath, String targetPath)
at RppGLUpdate.Class1.Main(String[] args).
THanks.