Like in
C:\\Python33\\Directory\\test.txt\\*.*
It seems literally impossible to google this, so I'm asking here. I get "FileNotFoundError"s and "NotADirectoryError"s because of these things.
Like in
C:\\Python33\\Directory\\test.txt\\*.*
It seems literally impossible to google this, so I'm asking here. I get "FileNotFoundError"s and "NotADirectoryError"s because of these things.
in some implementations *.*
as a wildcard matches everything inside the directory
The issue you're probably having though is it looks like you're looking inside test.txt like it's a directory, while it is likely a text file.
Maybe you're trying to open('C:\\Python33\\Directory\\test.txt')
? Hard to tell without knowing your specific problem.
Asterisk is a wildcard character. It means match on everything. So * . *
means match on all files in the directory.
If you have a specific python error you'll need to provide that script.
The *
is called the wildcard. This can be used to select a group of files/directories.
*
- Means files/directories with name of any length. And so this will match files/directories like 'name.txt', 'name' and so on.
.*
- means files/directories name starting with a '.' and then followed by any number of characters. And so this will match '.name', '.name.extension' and so on.
*.*
- Means files/directories names which start with any number of character followed by a '.' and then followed by any number of characters. This will match all hidden files and files with extension. And so this will not match files that dont have file extension.