Documentation
¶
Index ¶
- Constants
- func CopyResource(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string) error
- func DeleteFiles(source, absPath string, absDirPath string) error
- func Exists(path string) bool
- func FileInfoFaster(opts utils.FileOptions) (*iteminfo.ExtendedFileInfo, error)
- func IsNamedPipe(mode os.FileMode) bool
- func IsSymlink(mode os.FileMode) bool
- func MoveResource(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string) error
- func RefreshIndex(source string, path string, isDir bool, recursive bool) error
- func WriteDirectory(opts utils.FileOptions) error
- func WriteFile(opts utils.FileOptions, in io.Reader) error
Constants ¶
View Source
const ( // ContentBinaryHeaderValue header value for binary data. ContentBinaryHeaderValue = "application/octet-stream" // ContentWebassemblyHeaderValue header value for web assembly files. ContentWebassemblyHeaderValue = "application/wasm" // ContentHTMLHeaderValue is the string of text/html response header's content type value. ContentHTMLHeaderValue = "text/html" // ContentJSONHeaderValue header value for JSON data. ContentJSONHeaderValue = "application/json" // ContentJSONProblemHeaderValue header value for JSON API problem error. // Read more at: https://tools.ietf.org/html/rfc7807 ContentJSONProblemHeaderValue = "application/problem+json" // ContentXMLProblemHeaderValue header value for XML API problem error. // Read more at: https://tools.ietf.org/html/rfc7807 ContentXMLProblemHeaderValue = "application/problem+xml" // ContentJavascriptHeaderValue header value for JSONP & Javascript data. ContentJavascriptHeaderValue = "text/javascript" // ContentTextHeaderValue header value for Text data. ContentTextHeaderValue = "text/plain" // ContentXMLHeaderValue header value for XML data. ContentXMLHeaderValue = "text/xml" // ContentXMLUnreadableHeaderValue obsolete header value for XML. ContentXMLUnreadableHeaderValue = "application/xml" // ContentMarkdownHeaderValue custom key/content type, the real is the text/html. ContentMarkdownHeaderValue = "text/markdown" // ContentYAMLHeaderValue header value for YAML data. ContentYAMLHeaderValue = "application/x-yaml" // ContentYAMLTextHeaderValue header value for YAML plain text. ContentYAMLTextHeaderValue = "text/yaml" // ContentProtobufHeaderValue header value for Protobuf messages data. ContentProtobufHeaderValue = "application/x-protobuf" // ContentMsgPackHeaderValue header value for MsgPack data. ContentMsgPackHeaderValue = "application/msgpack" // ContentMsgPack2HeaderValue alternative header value for MsgPack data. ContentMsgPack2HeaderValue = "application/x-msgpack" // ContentFormHeaderValue header value for post form data. ContentFormHeaderValue = "application/x-www-form-urlencoded" // ContentFormMultipartHeaderValue header value for post multipart form data. ContentFormMultipartHeaderValue = "multipart/form-data" // ContentMultipartRelatedHeaderValue header value for multipart related data. ContentMultipartRelatedHeaderValue = "multipart/related" // ContentGRPCHeaderValue Content-Type header value for gRPC. ContentGRPCHeaderValue = "application/grpc" )
Variables ¶
This section is empty.
Functions ¶
func CopyResource ¶
func DeleteFiles ¶
func FileInfoFaster ¶
func FileInfoFaster(opts utils.FileOptions) (*iteminfo.ExtendedFileInfo, error)
func IsNamedPipe ¶
func MoveResource ¶
func WriteDirectory ¶
func WriteDirectory(opts utils.FileOptions) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.