Add some comments for tusd(1)
This commit is contained in:
parent
f3aba69ca1
commit
611f4decb6
|
@ -88,6 +88,8 @@ BuildDate = %s`, basepath, VersionName, GitCommit, BuildDate)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// Print version and other information and exit if the -version flag has been
|
||||||
|
// passed.
|
||||||
if version {
|
if version {
|
||||||
fmt.Printf("Version: %s\nCommit: %s\nDate: %s\n", VersionName, GitCommit, BuildDate)
|
fmt.Printf("Version: %s\nCommit: %s\nDate: %s\n", VersionName, GitCommit, BuildDate)
|
||||||
|
|
||||||
|
@ -95,6 +97,8 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var store tusd.TerminaterDataStore
|
var store tusd.TerminaterDataStore
|
||||||
|
// Attempt to use S3 as a backend if the -s3-bucket option has been supplied.
|
||||||
|
// If not, we default to storing them locally on disk.
|
||||||
if s3Bucket == "" {
|
if s3Bucket == "" {
|
||||||
stdout.Printf("Using '%s' as directory storage.\n", dir)
|
stdout.Printf("Using '%s' as directory storage.\n", dir)
|
||||||
if err := os.MkdirAll(dir, os.FileMode(0775)); err != nil {
|
if err := os.MkdirAll(dir, os.FileMode(0775)); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue