Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update track.py (fix "bad escape \M") #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 5, 2023

  1. Update track.py (fix "bad escape \M")

    - added a sanitize_string function to sanitize strings for filenames or directories
    - used this function to sanitize strings before constructing file paths
    - modify the regular expression to correctly match filenames that start with the sanitized filename
    - changed the file renaming process to use shutil.move instead of Path(filename_temp).rename(filename) to handle potential issues when the source and destination are in the same directory (files being renamed to "._1")
    
    needs to be tested more, but it fixes the problem.
    ray2301 authored Dec 5, 2023
    Configuration menu
    Copy the full SHA
    47a56af View commit details
    Browse the repository at this point in the history