← 返回
未分类 中文

File Organizer

Automatically organize, categorize, and clean up files. Use when user wants to (1) organize downloads or folders, (2) sort files by type/date/size, (3) find...
自动整理、分类和清理文件。适用于用户想要 (1) 整理下载或文件夹,(2) 按类型/日期/大小排序文件,(3) 查找...
di5cip1e
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 405
下载
💾 1
安装
1
版本
#latest

概述

File Organizer

Automatically organize and manage file collections.

Core Functions

1. Sort by Type

Group files by extension:

/documents/    → .pdf, .doc, .docx, .txt
/images/       → .jpg, .png, .gif, .svg
/videos/       → .mp4, .mov, .avi
/archives/     → .zip, .rar, .7z
/audio/        → .mp3, .wav, .flac
/code/         → .js, .py, .html, .css

2. Sort by Date

Organize by modification time:

/2026/04/07/
/2026/04/06/
/2026/03/

3. Find Duplicates

import hashlib

def find_duplicates(path):
    hashes = {}
    for file in Path(path).rglob('*'):
        if file.is_file():
            h = hashlib.md5(file.read_bytes()).hexdigest()
            hashes.setdefault(h, []).append(file)
    return {h: f for h, f in hashes.items() if len(f) > 1}

4. Bulk Rename

Patterns:

  • prefix_001.jpg, prefix_002.jpg
  • 2026-04-07_description.jpg
  • file_v1.txt, file_v2.txt

5. Cleanup Old Files

from datetime import datetime, timedelta

def cleanup_old(path, days=90):
    threshold = datetime.now() - timedelta(days=days)
    for file in Path(path).rglob('*'):
        if file.is_file() and datetime.fromtimestamp(file.stat().st_mtime) < threshold:
            file.unlink()  # or move to trash

Workflow

  1. Scan - List all files in directory
  2. Analyze - Get metadata (type, date, size, hash)
  3. Plan - Show proposed organization
  4. Execute - Move/copy/rename files
  5. Report - Summary of changes

Safety Rules

  • Always confirm before deleting or moving
  • Use trash instead of permanent delete when possible
  • Backup important files first
  • Log all changes for undo capability
  • Handle conflicts - ask about name collisions

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 05:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Client Outreach Automator

di5cip1e
生成针对特定行业和痛点的个性化多触点冷启动外联序列,包括邮件、LinkedIn 消息和电话脚本。
★ 0 📥 428

Data Analysis

di5cip1e
分析CSV/Excel文件,提取洞察、生成统计、创建图表并输出摘要。适用于用户需要上传或分析电子表格的场景。
★ 0 📥 802

N8N Workflow Builder

di5cip1e
将自然语言自动化请求转换为完整的、可部署的 N8N 工作流 JSON,用于业务流程自动化和集成。
★ 0 📥 565