+
Skip to content

soniah/polidor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polidor

Build Status GoDoc

Polidor is a program and library for cleaning up a disk based storage hierachy.

Sonia Hamilton, sonia@snowfrog.net, http://www.snowfrog.net.

Overview

Polidor is Portuguese for "polisher".

The files in Polidor are:

  • cleaner/cleaner.go and cleaner/retentions.yml - the main program and it's configuration file. Directories being scanned are printed to the screen, to give an indication of progress. Run using:
% cd cleaner
% go run cleaner.go
  • generator/generator.go and generator/generator.yml - for generating test data for the cleaner program, and it's configuration file. The names of files being generated are printed to the screen, to give an indication of progress. Run using:
% cd generator
% go run generator.go
  • polidor.go and polidor_test.go - library and tests

Program Logic

  • the configuration file is read in
  • the storage directory is walked using filepath.Walk()
  • to prevent the program from taking too long, a channel named timeout is used
  • the polidor library provides various directory parsing functions

Tests

Tests are run using Travis https://travis-ci.org/soniah/polidor. They can also be run by:

% go test
% go test -run <test name>

About

Polidor is a program for cleaning up a disk based storage hierachy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载