Differences

This shows you the differences between the selected revisions of the page.

2015-07-22 2015-08-07
key_refused (martin) path_slash_ambiguous (martin)
Line 423: Line 423:
If the above is not your case, use [[http://msdn.microsoft.com/en-us/library/e74a18c4.aspx|Assembly Binding Log Viewer]] (''Fuslogvw.exe'') to debug assembly loading. If the above is not your case, use [[http://msdn.microsoft.com/en-us/library/e74a18c4.aspx|Assembly Binding Log Viewer]] (''Fuslogvw.exe'') to debug assembly loading.
 +
 +===== [[path_slash_ambiguous]] Selecting files using a path ending with slash is ambiguous. Remove the slash to select the folder. Append * mask to select all files in the folder. =====
 +
 +When selecting files for an operation, you have specified a source path like ''C:\local\'' (''/remote/'').
 +
 +For example:
 +
 +<code winscp>
 +get /remote/ C:\local\
 +</code>
 +
 +The recommended syntax is either ''/remote/*'' (''C:\local\*'') or ''/remote'' (''C:\local'').
 +
 +The syntax with ''*'' [[file_mask|file mask]] (wildcard) will select files in the directory for the operation.
 +
 +For example the following code will download all files from the ''/remote'' directory to the ''C:\local'' directory:
 +
 +<code winscp>
 +get /remote/* C:\local\
 +</code>
 +
 +Contrary, the syntax without the file mask (wildcard) and an ending slash (backslash) will select the directory itself for the operation.
 +
 +For example the following code will download the ''/remote'' directory to ''C:\local'' directory. It means, the ''remote'' will be created as subdirectory of the ''C:\local'' directory. The files from ''/remote'' will be downloaded to the ''C:\local\remote''.
 +
 +<code winscp>
 +get /remote C:\local\
 +</code>
 +
 +The syntax with the ending slash is considered ambiguous. It's not clear if you wanted to select the directory itself or the files in the directory. WinSCP will behave unpredictably, when you use this syntax. The behavior might change with protocol and path syntax. The behavior may change in future releases of WinSCP or the format can be banned altogether. Use one the two formats described above, depending on your needs.
===== [[invalid_access_to_memory]] Invalid access to memory ===== ===== [[invalid_access_to_memory]] Invalid access to memory =====

Last modified: by martin