Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    Thanks for sharing nice code sir, could you please do let me know why we need *.* here? Can't be just * used here? Will be grateful if you could explain this one, thank you. Commented Jun 10, 2021 at 18:50
  • 1
    I used *.* because OP also had it, assuming filenames have extensions with . in filenames Commented Jun 10, 2021 at 18:51
  • oh ok, in case of * files with . will not be picked up? Sorry haven't tested it yet. Commented Jun 10, 2021 at 18:52
  • 1
    Files with . will also be picked up with just * but it will also pickup directories whereas *.* is more restrictive to match filenames with extensions only. Commented Jun 10, 2021 at 18:53