Table of contents:
Expand |
---|
title | Click here to expand the table of contents |
---|
|
|
...
The result of the work is saved to the list
...
Check directory existence
...
This action allows you to get one file from the directory at the specified path.
...
? - any one character other than a dot
* - any number of any characters
| - this symbol is used when you need to apply several masks at the same time (works only with files)
Expand |
---|
|
| Any files with any extension | | Any files with any extension | | Files with the extension .jpg . | | Files whose extension begins with p . document.pdf presentation.ppt document.project 1.p
| im *. *
| Files with any extension, but whose name begins with im . immature.jpg impossible.ico impatient.html
| | .html files whose name begins with any sequence of characters, then comes the mat part after which one character.
automate.html tomato.html mate.html
| doc?????.xls
| .xls file starting with doc followed by any 5 characters (except dot)
document.xls doc-1208.xls doctrine.xls
| ???.??
| A file with three characters in the name and two in the extension. | ?????
| A file with five characters in the name and no extension. | | Any xlsx and / or docx document invoice.docx resume.docx project.xlsx default.xlsx
|
|
Original article
...
Useful links
...