Skip to content

Commit

Permalink
feat: filter out hidden (dotfiles) in local wallpaper changer (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Dec 10, 2024
1 parent 66a347a commit 382528e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object LocalWallpaperHelper {
val contents = directory?.listFiles().orEmpty()
files.addAll(contents.filter { it.isFile })

contents.filter { it.isDirectory }.forEach {
contents.filter { it.isDirectory && !it.name.orEmpty().startsWith(".") }.forEach {
files.addAll(getAllFilesInCurrentDir(it))
}

Expand Down

0 comments on commit 382528e

Please sign in to comment.