Giter Site home page Giter Site logo

renify's Introduction

Renify

A simple cli tool for batch renaming files and folders, written in Rust.

  • πŸš€ written in Rust, fast.
  • πŸŽ‰ Available on PyPi, install via pip.
  • 🧩 Windows Linux MacOS support.
  • πŸ“” files and folders support.
  • 🎁 7 renaming methods provided.
  • ⚠️ symlinks are unsupported for now!

Example GIF

Installation

pip install renify
# or
cargo install renify

Usage

Renaming - 重命名

For those new to Renify, consider using the following code for interactive mode:

renify -i <File or Folder Path>

Or you can use:

renify -i <File or Folder Path> --target file --method znum --nbits 5 --recursive false --start 1 -y

Rolling back - ι€€ε›žδΈŠδΈ€ζ¬‘ζ“δ½œ

You can revert to the previous state of the modifications by using:

renify -i . --roll

Help & options

You can get help from:

renify --help

Methods provided

  • random: Sample a u8, uniformly distributed over ASCII letters and numbers: a-z, A-Z and 0-9. 9AFoh, wGRLC, knj9y, ...
  • uuid: Uuid4. de2662a9-fb02-4686-b556-0aca36c0e087
  • time: Local time now. 2023-03-04-22-26-42-222655555
  • num: Numbers start from --start (1 by default). 1, 2, 3, ...
  • znum: Numbers with left zero padding start from --start (1 by default). 001, 002, 003, ...
  • prefix: Add a prefix string to the file stem, along with a delimiter. X.jpg => [--with][--delimiter]X.jpg
  • append: Append a delimiter and a string after the file stem. X.jpg => X[--delimiter][--with].jpg

Note that

Renify will set --indiscriminate false to make sure that the file stems stay consistent. This means that if you have files with the same stems in the same folder, they'll still look the same even after you rename them. Certainly, you can use --indiscriminate to treat each file as an independent entity without considering its relationship with other files.

renify's People

Stargazers

 avatar  avatar

Watchers

 avatar

renify's Issues

Deleted package detected

I'm a Cyber Security researcher and developer of PackjGuard [1] to address open-source software supply chain attacks.

Issue

During my research, I detected a deleted package in this repository.

Details

Specifically, the package renify mentioned in file README at line 13 does not exist on the public PyPI registry. A bad actor can hijack this package to propagate malicious code.

Impact

Not only your apps/services using https://github.com/jamjamjon/renify repo code are vulnerable to this attack, but the users of your open-source Github repo could also fall victim.

You could read more about such attacks here: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610

Remediation

Please highlight this in file README and register a placeholder package for renify on public PyPI soon to remediate.

To automatically fix such issues in future, please install PackjGuard Github app [1].

Thanks!

  1. PackjGuard is a Github app that monitors your repos 24x7, detects vulnerable/malicious/risky open-source dependencies, and creates pull requests for auto remediation: https://github.com/marketplace/packjguard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.