Box CLI Search based only on metadata

新規投稿

コメント

1件のコメント

  • mwiller

     Unfortunately, it is not possible to search for ALL files based on their update date; a search query must be provided, per the API documentation.  One way to get all files in a specific folder updated after a certain date would be to list al the files in that folder and filter to just the ones with a modified_at value greater than the date.  You could use the jq tool (or something similar) to manipulate the JSON the CLI returns to accomplish this, doing something like this:

     

    box folders:items 0 --fields name,modified_at --json | jq '.[] | select(.modified_at >= "2019-01-01T00:00:00-08:00")'

     

     

    0
    コメントアクション パーマリンク

サインインしてコメントを残してください。