Skip to main content

Harmonize file names for Linux and Windows.

Project description

CrossRename

Harmonize file names for Linux and Windows.

Table of Contents

Introduction

CrossRename is a command-line tool designed to harmonize file names across Linux and Windows systems. It ensures that your file names are compatible with both operating systems, eliminating naming conflicts when transferring files between different environments.

Features

  • Sanitizes file names to be Windows-compatible (and thus Linux-compatible)

  • Handles both individual files and entire directories

  • Supports recursive renaming of files in subdirectories

  • Preserves file extensions, including compound extensions like .tar.gz

  • Provides informative logging with optional debug mode

Installation

From PyPI (Using PIP)

pip install CrossRename

Usage

usage: crossrename [-h] -p PATH [-d] [-v] [-r]

CrossRename: Harmonize file names for Linux and Windows.

options:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  The path to the file or directory to rename.
  -d, --debug           Enable debug mode.
  -v, --version         Prints out the current version and quits.
  -r, --recursive       Rename all files in the directory path given and its subdirectories.

Examples

Rename a single file:

crossrename -p /path/to/file.txt

Rename all files in a directory (and its subdirectories):

crossrename -p /path/to/directory -r

Why did I build this?

I’m a dual-booter running Windows 10 and Lubuntu 22.04. One day (literally yesterday lol), while transferring a folder between the two systems, I hit a naming roadblock. Five stubborn files refused to budge, thanks to the quirky differences in file naming rules between Linux and Windows.

This experience got me thinking. You see, I had previously built FicImage, a nifty application that elevates the reading experience of FicHub epubs by adding missing images. It required handling file creation and renaming, and that knowledge proved invaluable.

And so, CrossRename was born – a tool to simplify your life when managing files between Linux and Windows. No more naming hassles, just smooth, worry-free file management.

Contributing

Contributions are welcome! If you’d like to improve CrossRename or add support for other operating systems (like macOS), please feel free to submit a pull request.

Wait a minute, who are you?

Hello there! I’m Emmanuel Jemeni, and while I primarily work as a Frontend Developer, Python holds a special place as my first programming language. You can find me on various platforms:

License

MIT License

Changelog

Changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crossrename-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CrossRename-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file crossrename-1.0.0.tar.gz.

File metadata

  • Download URL: crossrename-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for crossrename-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e6c3cc59fda48c90aef75cfb4a35343800152b28a687bef13091b03479a56826
MD5 dd8783b3698de8150132df8e97034b29
BLAKE2b-256 562aeab4d5f3c6dfddf288299ed90e03c247832da9e2d041710eb06b3e402b40

See more details on using hashes here.

File details

Details for the file CrossRename-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: CrossRename-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for CrossRename-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24d31cf5b1133665b5dcc8352d126eb13e32fe586d39aebe0e730054a2484e9a
MD5 acfd7139f848bbd29ec147c2d5680a69
BLAKE2b-256 34a35b267d40deb2a1cb166576c5dce13bfee23dd1f19310e5aab582658cf603

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page