This guide helps diagnose and resolve common issues with the Folder DateTime Fix tool.
- Common Issues
- Verbose Mode & Debugging
- Permission Errors
- Network Share Issues
- Performance Problems
- Unexpected Results
- Quick Reference
Symptom: Folders still show wrong dates after running the tool.
Possible Causes:
- System files are actually newer than your content
- Permission issues preventing updates
- Wrong depth levels specified
Solutions:
# Check what's being detected with verbose mode
folder-datetime-fix . --fix-2 -vv
# Include normally-excluded system files to see their impact
folder-datetime-fix . --fix-2 --include-generated -vv --dry-run
# Check if you have permission to modify
folder-datetime-fix . --fix-2 --strictThe tool provides multiple verbosity levels to help diagnose issues:
| Level | Flag | Shows | Use When |
|---|---|---|---|
| Silent | -q |
Errors only | Automation/scripts |
| Normal | (default) | Basic progress + changes | Regular use |
| Verbose | -v |
Folder counts + all changes | Want more details |
| Very Verbose | -vv |
Scan details + timing | Debugging issues |
| Debug | -vvv |
Tree structure + internals | Deep debugging |
| Trace | -vvvv |
All operations + cache hits | Maximum detail |
# See what's being processed
folder-datetime-fix . --fix-all -v
# Debug why timestamps aren't changing
folder-datetime-fix . --fix-2 -vv
# Full debug output with tree visualization
folder-datetime-fix . --depth 1 -vvv
# Trace all operations (very detailed)
folder-datetime-fix . --depth 0 -vvvvScanning folders...
Found 42 folders to process
Processing depth 0: 1 folders
Processing depth 1: 12 folders
Updated: C:\Projects (2024-01-15 -> 2023-10-20)
Target path: C:\Projects (local)
Strategy: shallow (immediate children only)
Scanning with standard strategy...
Memory estimate: 15 folders, ~5KB
Using cache: enabled
Processing: C:\Projects
Current: 2024-01-15 10:30:00
Calculated: 2023-10-20 14:23:00 (from 15 files)
Result: Will update
Tree structure:
C:\Projects
├── src (2023-10-20)
│ ├── main.py (2023-10-20)
│ └── utils.py (2023-09-15)
├── docs (2023-08-10)
└── tests (2023-10-01)
Cache stats: 15 entries, 3 hits, 12 misses
Memory usage: 5.2KB
Run as Administrator:
# Right-click Command Prompt -> Run as Administrator
folder-datetime-fix C:\Windows\Temp --fix-allHandle permission errors gracefully:
# Default behavior: Continue running on errors (but shows warnings)
folder-datetime-fix . --fix-all
# Using --strict stops on first error
folder-datetime-fix . --fix-all --strict# Test with dry-run first
folder-datetime-fix //server/share --fix-all --dry-run
# Use credentials if needed (map drive first)
net use Z: \\server\share /user:domain\username
folder-datetime-fix Z:\ --fix-all# Use shallow scanning for network paths
folder-datetime-fix //server/share --fix-all --strategy shallow
# Use low-memory mode for large shares (slower but should work for infinite depth)
folder-datetime-fix //server/share --fix-all --analyze low-memory
# Process in smaller chunks
folder-datetime-fix //server/share --depth-to 2 # Just 0,1,2
folder-datetime-fix //server/share --depth 3 # Then depth 3# Method 1: Use --unc-path with quotes
folder-datetime-fix --unc-path "\\server\share" --fix-all
# Method 2: Use forward slashes
folder-datetime-fix //server/share --fix-all
# Method 3: Map to drive letter
net use Y: \\server\share
folder-datetime-fix Y:\ --fix-all# Force low-memory mode
folder-datetime-fix . --fix-all --analyze low-memory
# Process fewer depths at once
folder-datetime-fix . --depth 0 --depth 1
folder-datetime-fix . --depth 2 --depth 3
# Reduce cache usage
folder-datetime-fix . --fix-all --analyze standard,no-cache# Use shallow strategy (faster but less accurate)
folder-datetime-fix . --fix-all --strategy shallow
# Limit depth for testing
folder-datetime-fix . --depth-to 3 --dry-run# Time the operation
time folder-datetime-fix . --fix-2 -vv
# Check what's being scanned
folder-datetime-fix . --fix-2 -vvv | grep "Processing"
# See cache effectiveness
folder-datetime-fix . --fix-2 -vvvv | grep "Cache"# Check what files are being considered
folder-datetime-fix . --depth 0 -vvv
# See if system files are newer
folder-datetime-fix . --depth 0 --include-generated -vv --dry-run
# Try deep strategy for accuracy
folder-datetime-fix . --fix-2 --strategy deep# Check if they're being excluded
folder-datetime-fix . --fix-all -vv | grep "Skipping"
# Force inclusion of specific patterns
folder-datetime-fix . --fix-all --include ".git,.svn"
# Check for permission issues
folder-datetime-fix . --fix-all --strict# General help
folder-datetime-fix --help
# Help on specific topics
folder-datetime-fix --help strategy
folder-datetime-fix --help analyze
folder-datetime-fix --help patternsWhen reporting issues, include:
# Version information
folder-datetime-fix --version
# System information
python --version
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" # Windows
uname -a # Linux/Mac
# Diagnostic run
folder-datetime-fix . --depth 0 -vvvv --dry-run > debug.log 2>&1When reporting issues, please include:
- The exact command you ran
- Your operating system and Python version
- The verbose output (
-vvor-vvv) - What you expected vs what happened
- A small reproducible example if possible
# Test on a single folder
folder-datetime-fix "C:\TestFolder" --depth 0 -vvv
# Test timestamp calculation without applying
folder-datetime-fix . --fix-2 --dry-run -vv
# Compare strategies
folder-datetime-fix . --depth 0 --strategy shallow -vv --dry-run
folder-datetime-fix . --depth 0 --strategy deep -vv --dry-run
# Test exclusion patterns
folder-datetime-fix . --fix-all --exclude "*.tmp,cache" -vv# Force specific analysis mode
folder-datetime-fix . --fix-all --analyze tree -vv
folder-datetime-fix . --fix-all --analyze low-memory -vv
# Check memory usage
folder-datetime-fix . --fix-all --analyze auto -vvv | grep "Memory"# Why isn't my folder updating?
folder-datetime-fix "C:\Problem\Folder" --depth 0 -vvv
# What's taking so long?
folder-datetime-fix . --fix-all -vv --dry-run | head -50
# What files are affecting timestamps?
folder-datetime-fix . --depth 0 --strategy deep -vvv
# Is it a permission problem?
folder-datetime-fix . --fix-2 --strict
# Is it excluding too much?
folder-datetime-fix . --fix-2 --include-generated -vv --dry-run