Re: Ignore a list of files
@m_mirshahreza: Sorry, still not clear. How does the
Mask
option limit you? You can list your files there.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Mask
option limit you? You can list your files there.
SynchronizeDirectories
based on my manual files list not mask option?
var r = session.SynchronizeDirectories(
WinSCP.SynchronizationMode.Remote,
HostingUtils.GetHostRootDirectory().FullName, remotePath, false);
Mask
option but it is enough for my scenario. I need to exclude some files manually by my rules.
FileMask
option, but there is not any options for it.
SynchronizeDirectories
method it usesWinSCP.SynchronizationCriteria.Time
(or other options) that needs to read remote file info, that is very slow. I have some log files in my context that tells me which file must not upload and it will be very fast because it does not need to remote checking.
D:\FTP\User\Outgoing
that contains a subfolder Archive
(D:\FTP\User\Outgoing\Archive
) and 2 files, a .txt
and a .flg
.txt
and .flg
but when I say put *.*
, the Archive
directory is included. I am confused on how to exclude the Archive
directory.
forum/files/
wasn't working. Looking at it again, it is still not clear why */forum/files/
works and forum/files/
does not.
| forum/files/*; forum/files/; forum/files*/; forum/files*/*/