message: construction: Make Local Filesystem implementation return items from folders in order (folders first, then files)
diff: @@ -34,7 +34,8 @@ impl Filesystem for LocalFilesystem {
  fn list_dir_by_path(&self, path: &str) -> Result<Vec<DirItemInfo>, Errors> {
  fs::read_dir(path)
  .map(|dirs| {
  - dirs.filter_map(|entry| {
  + let mut items = dirs
  + .filter_map(|entry| {
  if let Ok(entry) = entry {
  let path = entry.path();
  let str_path = path.as_os_str().to_str().unwrap().to_string();
  @@ -49,7 +50,11 @@ impl Filesystem for LocalFilesystem {
  None
  }
  })
  - .collect::<Vec<DirItemInfo>>()
  + .collect::<Vec<DirItemInfo>>();
  +
  + items.sort_by_key(|item| item.is_file);
  +
  + items
  })
  .map_err(|err| match err.kind() {
  ErrorKind::NotFound => Errors::Fs(FilesystemErrors::FileNotFound),
  