Python Forum
How to get full path of specified hidden files matching pattern recursively
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get full path of specified hidden files matching pattern recursively
#1
Hi,
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\\*\\*'
Reply


Messages In This Thread
How to get full path of specified hidden files matching pattern recursively - by SriRajesh - Jan-18-2020, 08:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  does not save in other path than opened files before icode 3 935 Jun-23-2023, 07:25 PM
Last Post: snippsat
  Copy only hidden files and folders with rsync Cannondale 2 1,035 Mar-04-2023, 02:48 PM
Last Post: Cannondale
  How to return the next page from json recursively? sandson 0 1,173 Apr-01-2022, 11:01 PM
Last Post: sandson
  Can ZipFile be used to extract hidden files? AiedailEclipsed 0 1,652 Mar-22-2022, 05:21 PM
Last Post: AiedailEclipsed
  Finding files matching pattern GrahamL 1 1,312 Jan-14-2022, 01:16 PM
Last Post: DeaD_EyE
  Help Needed | Read Outlook email Recursively & download attachment Vinci141 1 4,110 Jan-07-2022, 07:38 PM
Last Post: cubangt
  Compare filename with folder name and copy matching files into a particular folder shantanu97 2 4,546 Dec-18-2021, 09:32 PM
Last Post: Larz60+
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,232 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  get all the files in the path in a list? korenron 23 7,204 Jul-19-2021, 07:44 AM
Last Post: korenron
  Matching two files based on a spited elements tester_V 5 2,837 May-30-2021, 07:49 PM
Last Post: tester_V

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020