Socket
Socket
Sign inDemoInstall

sage-directory

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sage-directory

sage-directory is a python package that offers a detailed overview of folder contents and streamlines the process of copying and managing directories.


Maintainers
1

Sage

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.

Installation

pip install sage-directory

Usage

Main Features

Comprehensive Folder Overview

Generate detailed summaries of folder contents, including file types, sizes, and subfolder structures,

import sage

sage.get_folder_overview('.')
PathFolder NameIs Folder?File NameFile Size (Bytes)File ExtensionsNumber of Files in FolderDepth
./bathoom.py.Falsebathoom_cal.py2151.py00
./kitchen.png.Falsekitchen.png2151.png00
./shopsshopsTrueN/A0N/A21

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)

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc