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

Strip invalid characters from Episode name #4

Open
elvishp2006 opened this issue Aug 17, 2017 · 2 comments
Open

Strip invalid characters from Episode name #4

elvishp2006 opened this issue Aug 17, 2017 · 2 comments

Comments

@elvishp2006
Copy link

Example:

"./Season 2/PUNCH_Psycho_Pass_2_11.mp4" -> "./Season 2/Psycho Pass - 2x11 - What Color?.mp4"

The "?" is a invalid character for file names or folders.

I'm using "Windows Subsystem for Linux".

@mmstick
Copy link
Owner

mmstick commented Aug 17, 2017

The ? character is a valid character for file names and folders in most filesystems. A fix for Windows' broken NTFS file system would be to check if the target directory is on a NTFS file system, and applying a fix for that. Simplest means would be invoking an external stat command on the target directory and parsing it's output. IE: stat -f -c %T TARGET/DIRECTORY

@elvishp2006
Copy link
Author

The result of this command was: UNKNOWN (0x53464846)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants