diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-20 22:21:28 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-20 22:21:28 -0700 |
| commit | f22acf38da970aa0d865a9978c9499dad01d235f (patch) | |
| tree | 6811766749c794afd9eb23e372cc1673f1bae41a /hotline/file_types.go | |
| parent | 7cd900d61edbd6d322db3cecb913adf574389320 (diff) | |
Convert hardcoded path separators to filepath.Join
Diffstat (limited to 'hotline/file_types.go')
| -rw-r--r-- | hotline/file_types.go | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/hotline/file_types.go b/hotline/file_types.go index 2162323..40b8374 100644 --- a/hotline/file_types.go +++ b/hotline/file_types.go @@ -11,51 +11,55 @@ var defaultFileType = fileType{ } var fileTypes = map[string]fileType{ - "sit": { + ".sit": { TypeCode: "SIT!", CreatorCode: "SIT!", }, - "pdf": { + ".pdf": { TypeCode: "PDF ", CreatorCode: "CARO", }, - "gif": { + ".gif": { TypeCode: "GIFf", CreatorCode: "ogle", }, - "txt": { + ".txt": { TypeCode: "TEXT", CreatorCode: "ttxt", }, - "zip": { + ".zip": { TypeCode: "ZIP ", CreatorCode: "SITx", }, - "tgz": { + ".tgz": { TypeCode: "Gzip", CreatorCode: "SITx", }, - "hqx": { + ".hqx": { TypeCode: "TEXT", CreatorCode: "SITx", }, - "jpg": { + ".jpg": { TypeCode: "JPEG", CreatorCode: "ogle", }, - "img": { + ".jpeg": { + TypeCode: "JPEG", + CreatorCode: "ogle", + }, + ".img": { TypeCode: "rohd", CreatorCode: "ddsk", }, - "sea": { + ".sea": { TypeCode: "APPL", CreatorCode: "aust", }, - "mov": { + ".mov": { TypeCode: "MooV", CreatorCode: "TVOD", }, - "incomplete": { // Partial file upload + ".incomplete": { // Partial file upload TypeCode: "HTft", CreatorCode: "HTLC", }, |