Find directories containing certain file

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
tbeu
Power Member
Power Member
Posts: 1228
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Find directories containing certain file

Post by *tbeu » 2018-12-18, 14:59 UTC

I need to search a directory tree recursively for all directories containing a certain file, pass the found directories to the list box and then "pack" using TreeCopyPlus (packer plugin) to copy all these found directories (with all containing files and directory structure considered).

However, there is no simple workflow/solution/plugin to find these directories. Currently, I use the DirSizeCalc content plugin to search for a certain file count, since I know the number if the file to search for exists (and that it is a different number if the file does not exist) and that the file only exists on leaf directories. Is there any better/direct solution?

Sorry, if duplicated issue, but I actually searched the forum and found no acceptable solution so far.
TC plugins: Autodesk 3ds Max Preview, Autodesk Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more

User avatar
MVV
Power Member
Power Member
Posts: 8198
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Find directories containing certain file

Post by *MVV » 2018-12-20, 05:01 UTC

Perhaps you could try FileInDir plugin...

User avatar
tbeu
Power Member
Power Member
Posts: 1228
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: Find directories containing certain file

Post by *tbeu » 2018-12-21, 14:05 UTC

Thanks. Indeed, that is the kind of plugin I was thinking of. Was not yet aware of the FileInDir content plugin. Let me see if I can make a proper 64-bit version of it.
TC plugins: Autodesk 3ds Max Preview, Autodesk Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more

User avatar
tbeu
Power Member
Power Member
Posts: 1228
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: Find directories containing certain file

Post by *tbeu » 2019-02-02, 12:22 UTC

tbeu wrote:
2018-12-21, 14:05 UTC
Let me see if I can make a proper 64-bit version of it.
Done. FileInDir 2.0.0.1 is released at totalcmd.net.
TC plugins: Autodesk 3ds Max Preview, Autodesk Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more

Post Reply