Skip to content

it scans and exports directory structures (folders/files) recursively with tree view, customizable output, and optional file filtering, perfect for documentation and system analysis

Notifications You must be signed in to change notification settings

serpo-dev/ScanDirectory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Directory Scanner

A Go script that scans directory structure and saves it to output.txt

Features

  • Scans any directory (current directory by default)
  • Option to show only directories or both directories and files
  • Creates hierarchical tree structure with indentation
  • Uses emoji icons for visual distinction (πŸ“ for folders, πŸ“„ for files)
  • Saves results to output.txt in specified location

Usage

  1. Run the script: go run main.go
  2. Enter directory to scan (press Enter for current directory)
  3. Choose whether to show only directories (y/n)
  4. Specify output path for output.txt (press Enter for current directory)

Example Output

πŸ“ folder1
  πŸ“ subfolder
    πŸ“„ file1.txt
    πŸ“„ file2.txt
  πŸ“„ document.pdf
πŸ“ folder2
πŸ“„ README.md
    

Releases

No releases published

Packages

No packages published

Languages