Programatically create more than 100 albums with names that follow a pattern #1843
Unanswered
rodrigo-morales-1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let me explain my use case: I'm enrolled in 7 courses in an institution. Each of those courses consist of 20 lectures. In each lecture, I take notes on paper and then I take a photo of my notes. I store the photos for each lecture in a separate album.
For example, here's the name of those albums.
I was wondering how I could create 140 folders without doing it manually.
I want to create those folders on a single day before the study period starts so that I don't have to create an album manually in separate days during the study period, when I'd rather avoid doing repetitive tasks and use my time and energy where it matters.
What I tried
Attempt 1: Failure
I mounted my SD card and I executed the script below. It created empty directories inside the Pictures folder. I opened Android settings and pressed "Clear data" for AvesLibre. I then started AvesLibre and I had to do the first-time setup, but I noticed that the albums were not created.
From this attempt, I learned that having an empty directory in the folder
Picturesis not enough for the album to be created inside Aves Libre.Attempt 2: Success
I then downloaded a simple image from https://commons.wikimedia.org/wiki/File:White_background.png
and created directories but I also copied the image to each directory
I then opened AvesLibre and the albums were created. See screenshot below.
While I feel satisfied with my results, I'm starting this discussion because I want to know how others would have done this or if there are quicker or more convenient ways to do this.
Beta Was this translation helpful? Give feedback.
All reactions