Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
advice needed
#4
If you only want to locate the files in the file system, you could use tools such as the commands plocate and updatedb.plocate in linux. The updatedb command updates a database containing the information and the plocate command finds files in the database.

The drawback is that you'd need to call the external command plocate to query the database in a subprocess, unless you find a way to read the database directly from Python. I know that some Python modules where able to read mlocate databases in the past, but the more recent plocate databases may have a different structure. Also it may not be a better idea than using plocate directly.
Reply


Messages In This Thread
advice needed - by DPaul - Oct-03-2023, 06:38 AM
RE: advice needed - by Gribouillis - Oct-03-2023, 09:56 AM
RE: advice needed - by DPaul - Oct-03-2023, 12:50 PM
RE: advice needed - by Gribouillis - Oct-03-2023, 02:31 PM
RE: advice needed - by DPaul - Oct-03-2023, 03:18 PM
RE: advice needed - by DPaul - Oct-05-2023, 06:07 AM

Forum Jump:

User Panel Messages

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