Skip to content

Conversation

@nirshneor
Copy link
Contributor

The returned Json will only include files deleted. Tests added too.

We would like to use this on directories that might have many files - so every time this runs - we would like to limit it's work to # of files.

…le operation. The returned Json will only include files deleted. Tests added too.
@binarykitchen binarykitchen merged commit 615f0d1 into binarykitchen:master Dec 4, 2017
@binarykitchen
Copy link
Owner

reviewed your changes, looking good - merged! ... and thanks for that

@nirshneor nirshneor deleted the file-deletion-limitation branch December 5, 2017 07:40
@nirshneor
Copy link
Contributor Author

nirshneor commented Dec 5, 2017

Thanks - BTW - I just noticed that in the README it says that the age is taken from creation date. But in Linux files there is no real creation date, only modification date - and it looks like in your implementation you use mtime (modification time). I think it might be a good idea to update the README. added a pull request for the README.

@binarykitchen
Copy link
Owner

well spotted, thanks again man @nirshneor

binarykitchen added a commit that referenced this pull request Mar 11, 2018
Adding an option to limit the number of files to be deleted at a single operation
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.

2 participants