Differences
This shows you the differences between the selected revisions of the page.
2012-09-24 | 2013-05-06 | ||
not only wildcard, but path including wildcard (martin) | non existing file is an error, non matching mask is not (martin) | ||
Line 9: | Line 9: | ||
For example, if your file is named ''filewithstar*.txt'', passing such name directly to ''[[library_session_getfiles|Session.GetFiles]]'' would download all files with name starting ''filewithstar'' and ''.txt'' extension, not only ''filewithstar*.txt''. The ''Session.EscapeFileMask'' converts the name to unambiguous mask ''filewithstar[*].txt'', that matches only the ''filewithstar*.txt''. | For example, if your file is named ''filewithstar*.txt'', passing such name directly to ''[[library_session_getfiles|Session.GetFiles]]'' would download all files with name starting ''filewithstar'' and ''.txt'' extension, not only ''filewithstar*.txt''. The ''Session.EscapeFileMask'' converts the name to unambiguous mask ''filewithstar[*].txt'', that matches only the ''filewithstar*.txt''. | ||
+ | It is an error, when you use path to a file that does not exist with above methods. Though, it is not an error when you use a mask that does not match any file (the directory used with the mask still needs to exist). |