Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 957 Bytes

File metadata and controls

36 lines (20 loc) · 957 Bytes

file_audit

Simple c++ tool to search for files by extension and write to csv file.

Notes

Used chatGPT to create most of the code via Bing chat.

  • Main module file_audit.cpp
  • progress.h class

I glued pieces together.

  • added part to count all files in dir structure
  • updated progress bar
  • extra prints

for details. took a few iterations to get it right.

See blog https://www.jibsheet.net/linux/index.php/2023/05/24/chatgpt-creating-a-c-file-search-with-csv-output/

Licsnes is MIT. Not sure about it. The code looks like many of the examples out on the internet.

#Usage: ./file_audit --dir --csvfile --type

Options:

--dir Specify the directory to scan recursively

--csvfile Specify the output csv file name

--type Specify the file extension type to filter - use .pdf not pdf - include

-h Show this help message and exit