netromdk / slacker

Slacker - Easy access to the Slack API and admin of workspaces/teams.
MIT License
14 stars 0 forks source link

List files #21

Closed netromdk closed 6 years ago

netromdk commented 6 years ago

Command: files.list Aliases: files Arguments:

Return all files. This will disregard --count and -page but still respects filtering.
--all|-a

Number of items to return per page (defaults to 100).
--count|-c <int>

Page number of results to return (defaults to 1).
--page|-p <int>

Filter files by types, like "snippets,images,pdfs" (defaults to "all").
    all - All files
    spaces - Posts
    snippets - Snippets
    images - Image files
    gdocs - Google docs
    zips - Zip files
    pdfs - PDF files
--types|-p <strs,..>

Show only files with an age in days less than or equal to input amount.
--days-old|-d <int>

Show only files that are older than input amount of days.
--older-than|-o <int>

The defaults should be enforced locally by this command and not rely on what the API does per default, unless it is regarding arguments this command doesn't expose.

API method: https://api.slack.com/methods/files.list