Metadata-Version: 2.1
Name: CrossRename
Version: 1.1.0
Summary: Harmonize file names for Linux and Windows.
Author-email: "Emmanuel C. Jemeni" <jemenichinonso11@gmail.com>
License: MIT License
        
        Copyright (c) 2024 Emmanuel C. Jemeni
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/Jemeni11/CrossRename
Project-URL: Bug Tracker, https://github.com/Jemeni11/CrossRename/issues
Project-URL: Changelog, https://github.com/Jemeni11/CrossRename/blob/master/CHANGELOG.md
Keywords: files,rename,linux,windows,transferring,filename
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE

CrossRename
===========

Harmonize file names for Linux and Windows.

Table of Contents
=================

-  `Introduction <#introduction>`__
-  `Features <#features>`__
-  `Installation <#installation>`__
-  `Usage <#usage>`__
-  `Examples <#examples>`__
-  `Why did I build this? <#why-did-i-build-this>`__
-  `Contributing <#contributing>`__
-  `Wait a minute, who are you? <#wait-a-minute-who-are-you>`__
-  `License <#license>`__
-  `Changelog <#changelog>`__

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
-  Provides a dry-run mode to preview renaming changes without executing them
-  Skips recursive symlinks to avoid infinite loops

Installation
============

From PyPI (Using PIP)
---------------------

::

   pip install CrossRename

Usage
=====

::

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

   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.
     -v, --version         Prints out the current version and quits.
     -u, --update          Check if a new version is available.
     -r, --recursive       Rename all files in the directory path given and its subdirectories.
     -d, --dry-run         Perform a dry run, logging changes without renaming.

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

Perform a dry run to preview renaming changes without executing them:

::

   crossrename -p /path/to/directory -r -d


Check for an update:

::

   crossrename -u


Why did I build this?
=====================

.. warning::

   I'm no longer dual booting. I'm only using Windows 10 now. I do have
   WSL2 and that's what I use for testing. I don't know if there'll be
   any difference in the way the tool works on a native Linux system.

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 <https://github.com/Jemeni11/ficimage>`__, a nifty application
that elevates the reading experience of `FicHub <https://fichub.net/>`__
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:

-  `LinkedIn <https://www.linkedin.com/in/emmanuel-jemeni>`__
-  `GitHub <https://github.com/Jemeni11>`__
-  `Twitter/X <https://twitter.com/Jemeni11_>`__

License
=======

`MIT License <LICENSE>`__

Changelog
=========

`Changelog <CHANGELOG.md>`__
