Hi,
I want to get the full path of hidden files of matching pattern (file name: .daily.log)
The hidden file name: ".daily.log"
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'D:\\Mekala_Backupdata\\*\\*'
I want to get the full path of hidden files of matching pattern (file name: .daily.log)
The hidden file name: ".daily.log"
from pathlib import Path for filename in Path('D:\Backupdata\*\*').rglob('*.daily.log'): print(filename)I am getting below error:
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'D:\\Mekala_Backupdata\\*\\*'