Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Add dir? to file #66

@joseramonc

Description

@joseramonc

I can't differentiate easily between Dropbox::API::Dir and Dropbox::API::File, I'm interested in differentiate to put a different icon in the view, I'd like something like this.

@client.ls.each do |file|
  if file.dir?
    puts 'directory-icon' 
  else
    puts 'file-icon'
  end
end

I can work on this if it's a feature you'd like to add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions