Skip to content

Delete folders of expired links #1447

Closed Answered by elrido
PeopleInside asked this question in Q&A
Discussion options

You must be logged in to vote

The script is not dependent on docker and part of the default PrivateBin distribution, not just the container image. You would simply call it from the PrivateBin folder, i.e. ./bin/administration --empty-dirs

It is not doing any sophisticated things either, and you could simply call the find data -type d -empty -delete (delete any empty directories in data) command directly from your cronjob:

passthru("find $dir -type d -empty -delete", $code);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PeopleInside
Comment options

@elrido
Comment options

Answer selected by PeopleInside
@PeopleInside
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants