Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
add FileTypeNone [nt]
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Dec 1, 2023
1 parent 1c72fe5 commit b2b676b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filesys/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ func (pn PathNodes) List() (paths []string) {

type FileType string

const FileTypeNone FileType = ""
const FileTypeCsv FileType = "csv"
const FileTypeXml FileType = "xml"
const FileTypeJson FileType = "json"
Expand Down Expand Up @@ -619,7 +620,7 @@ func (fs *BaseFileSysClient) WriteDataflowReady(df *iop.Dataflow, url string, fi
concurrency = 7
}

if fileFormat == "" {
if fileFormat == FileTypeNone {
fileFormat = InferFileFormat(url)
}

Expand Down

0 comments on commit b2b676b

Please sign in to comment.