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

How to capitalize filename? #312

Closed
muff1nman opened this issue May 30, 2019 · 1 comment
Closed

How to capitalize filename? #312

muff1nman opened this issue May 30, 2019 · 1 comment

Comments

@muff1nman
Copy link
Contributor

I'd like to captialize my filenames. Here is my current configuration:

[Directory]
year=%Y
month=%m
day=%d
full_path=%year/%month/%day

[File]
name=%original_name.%extension

Is there a way I can capitalize my file names without the following patch?

diff --git a/elodie/filesystem.py b/elodie/filesystem.py
index 5048b78..dc272a5 100644
--- a/elodie/filesystem.py
+++ b/elodie/filesystem.py
@@ -211,7 +211,7 @@ class FileSystem(object):
                     name,
                 )
 
-        return name.lower()
+        return name.upper()
 
     def get_file_name_definition(self):
         """Returns a list of folder definitions.
@jmathai
Copy link
Owner

jmathai commented May 30, 2019

There's no way to capitalize file names but your patch would do the trick. If you'd like to include a PR which adds a case value under [File] in the config then reopen this issue and submit the PR so I can look to merge it. That way your branch will cleanly merge with this as a remote.

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