Subject: [PATCH] Changes for notes with long filenames that generate endless recursion and memory issues
This patch replaces a buggy recursion method with an iterative procedure. When there is a very long filename the recursion doesn't end. An iterative procedure works well.