Skip to content
Advertisement

Tag: po

Search for all po files in a directory and its subdirectories and create a Hashmap containing the filepaths as value and its directory as key

I want to search for all .po files in a directory and add them to a HashMap. My directories looks like the following: How can I represent/search these files with the help of java-Streams and HashMap<String, List<File>>, with en/de/it.po as a List<File> type and the respective directory root of these files dir1subdir-1**subdir-n as a key? I’ve tried the following solution

Advertisement