in reply to Downloading from a Lotus Notes database

The original program cycles over all the views ( or folders, Notes treats both views and folders the same ). If you go back to the program you will see "$viewname =~ s(\\)(.)g;" In LN the views (folders) are seperated by "\" So, folder->subFolder will be returned from LN as folder\subFolder in $viewname. Then it's converted to folder.subFolder.

It may be as simple as replacing "\" to "/" so when you "my $path = "$dir/$viewname"; " you will end up with my $path = "$dir/folder/subFolder ";