
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
sage-directory is a python package that offers a detailed overview of folder contents and streamlines the process of copying and managing directories.
sage-directory is a python package that offers a detailed overview of folder contents and streamlines the process of copying and managing directories. It is designed to enhance productivity and simplify file management. It provides details of folder contents, including the file types, size, and subfolder structures, enabling quick insights into the organization of your directory.
Beyond analysis, the tool offers robust functionality for copying entire folders, ensuring seamless management and replication of data environments. Whether you're organizing complex project files, backing up critical datasets, or duplicating environments, this tool is built to optimize your workflow.
pip install sage-directory
Comprehensive Folder Overview
Generate detailed summaries of folder contents, including file types, sizes, and subfolder structures,
import sage
sage.get_folder_overview('.')
Path | Folder Name | Is Folder? | File Name | File Size (Bytes) | File Extensions | Number of Files in Folder | Depth |
./bathoom.py | . | False | bathoom_cal.py | 2151 | .py | 0 | 0 |
./kitchen.png | . | False | kitchen.png | 2151 | .png | 0 | 0 |
./shops | shops | True | N/A | 0 | N/A | 2 | 1 |
Selective Copying
Choose a specific file to overwrite another in multiple directories
import sage
# overwrites the entered filename (basement.png) in the renovated_kitchen folder with the file in kitchen_catelog folder
sage.batch_file_overwrite(./kitchen_catelog, ./renovated_kitchen, "basement.png")
Batch Operations
Perform operations on multiple directories
import sage
# only copies 10 folders that are in the kitchen_catelog that share the same folder names as those in the old_kitchen folder in the renovated_kitchen folder
sage.copy_num_folders(./old_kitchen, ./kitchen_catelog, ./renovated_kitchen, 10)
# only copies folders that are in the kitchen_catelog that share the same folder names as those in the old_kitchen folder in the renovated_kitchen folder
sage.copy_folders(./old_kitchen, ./kitchen_catelog, ./renovated_kitchen)
FAQs
sage-directory is a python package that offers a detailed overview of folder contents and streamlines the process of copying and managing directories.
We found that sage-directory demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.