fagga/transmission-remote-cli — pull request #82 by Oddegamra (2012-07-22 16:34:28+00:00)
Title: Filelist indentation wrong with multiple same-level directories.

create_filelist_transition does not properly handle switching
directories that both contain files and are part of the same parent
directory. When descending from a directory than contains many
subdirectories to a directory that contains less, the latter directory
will not be printed, and indentation will be wrong from that point on.

Apart from adding documentation to the function, only one line was
changed:

- if f_len < current_folder_len:
+ if f_len < current_folder_len and f_len == same:

This additional condition should prevent losing directory entries,
and still produce correct output when showing files interleaved with
directories:

dir/file1
dir/dir/file2
dir/file3

Fixes fagga/transmission-remote-cli#81.