Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of contents:

Expand
titleClick here to expand the table of contents
Table of Contents
exclude^Оглавление$

...

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
titleExamples of

Any files with any extension

  • .*

Any files with any extension

  • .jpg

Files with the extension .jpg .

  • image.jpg

  • avatar.jpg

  • 1.jpg

  • .p*

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

  • mat?.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.

  • house

  • image

  • tasks

  • .xlsx | *.docx

Any xlsx and / or docx document

  • invoice.docx

  • resume.docx

  • project.xlsx

  • default.xlsx

Original article

...

...