-
Notifications
You must be signed in to change notification settings - Fork 0
How it works?
ViiSE edited this page Jul 22, 2020
·
2 revisions
To understand how Papka works, let's look at an example. We have raw files list like this:
/music/sound1.mp3 /music/sound2.mp3 /music/sound3.mp3 /music/opus/o1.mp3 /music/opus/o2.mp3 /doc/table.xslx /doc/doc.docx /doc/present.pptx /diary
After instantiating Folder
and first calling one of its methods, the following occurs:
- An instance of
Map
is created in which the key is the full name of the folder and the value is the list of files of this folder (In alphabet order).
- Folders full name split separator
/
and creates instances ofFolder
. For example, folder/music/opus/
will turn into/music
folder, which containsopus
folder, i.e.opus
is a child ofmusic
. Files ofmusic
issound1.mp3
,sound2.mp3
,sound3.mp3
, and files ofopus
iso1.mp3
ando2.mp3
. Thus, we get the following Java-object: