Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm: add timebased delete and object list from stdin #1837

Merged
merged 1 commit into from
Sep 28, 2016

Conversation

balamurugana
Copy link
Member

  • Add multi-delete support by taking object list from stdin
  • Add support to rm to remove objects older than given time

Fixes #1827 #1828

@codecov-io
Copy link

codecov-io commented Sep 27, 2016

Current coverage is 8.78% (diff: 0.00%)

Merging #1837 into master will decrease coverage by 0.09%

@@            master     #1837   diff @@
========================================
  Files           77        77          
  Lines         5957      6022    +65   
  Methods          0         0          
  Messages         0         0          
  Branches         0         0          
========================================
  Hits           529       529          
- Misses        5297      5362    +65   
  Partials       131       131          

Powered by Codecov. Last update add7dcc...d4db702


// Check whether object is created older than given time only if older is >= one hour.
if older >= defaultOlderTime {
now := time.Now()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use 'time.Now().UTC()'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@balamurugana balamurugana force-pushed the devel branch 3 times, most recently from 225460d to 8c3df4b Compare September 28, 2016 04:08
@harshavardhana
Copy link
Member

We should use 'time.Now().UTC()'

ping @balamurugana can you address the last comment?

* Add multi-delete support by taking object list from stdin
* Add support to `rm` to remove objects older than given time
* Add --prefix flag to differenciate prefix and target names.

Fixes minio#1827 minio#1828
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants