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

Support globbing in ics_{task,event}_files #109

Open
LnLcFlx opened this issue Sep 23, 2024 · 2 comments
Open

Support globbing in ics_{task,event}_files #109

LnLcFlx opened this issue Sep 23, 2024 · 2 comments
Labels
Feature request New feature or request

Comments

@LnLcFlx
Copy link

LnLcFlx commented Sep 23, 2024

I have a folder folder with each subfolder subfolder1, subfolder2,... representing one calendar and each subfolder containing the events as separate ics files.

Right now I have to do

ics_task_files = calendars/subfolder1,calendars/subfolder2,...

but it would be super useful if a glob patterns such as

ics_task_files = calendars/*

would expand to the above syntax.
This is especially the case if you have many calendars or the calendars/subfolders change very often on disk.

@anufrievroman anufrievroman added the Feature request New feature or request label Sep 24, 2024
@anufrievroman
Copy link
Owner

I think it's quite possible to make it.

Note to myself (or whoever would like to work on it): it can be implemented like that: in loaders.py around line 307, there should be a check for * and then if true, the os.walk should also walk through all directories in that path or something like that.

@LnLcFlx
Copy link
Author

LnLcFlx commented Sep 25, 2024

I was thinking of python standard library glob

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

No branches or pull requests

2 participants