andrewiankidd / rcloneExplorer

rclone GUI for Windows
142 stars 20 forks source link

Ability to view blank folders #10

Closed andrewiankidd closed 7 years ago

andrewiankidd commented 7 years ago

empty folders dont work... this is because the current hack to get folders is to split by /, could patch this but going to move to a combination of lsd and lsl instead for better performance

ie currently it works via lstExplorer.items = rclone lsl remote:/path/ & split by / to tell if directory or not (since empty folders only have content on one side of the slash, they get skipped over)

new way: lstExplorer.items = rclone lsd remote:/path/ lstExplorer.items += rclone lsl -max-depth 1

which instead of one big slow query and function, two quick querys return the exact needed data

andrewiankidd commented 7 years ago

02b49086218f7bb62d59d2f078039a5f61b92af5