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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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