filesystem

package
v0.0.0-...-5d142b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractURL

func ExtractURL(file string) *url.URL

func GetFileSystemFromFile

func GetFileSystemFromFile(file string) (fs.FileSystem, error)

func LinuxPath

func LinuxPath(path string) string

TODO: Move this into a Windows specific build function and

make unix a no-op

func MakeFile

func MakeFile(file string) (fs.File, fs.FileSystem, error)

Given a file path as a string (remote/local etc.) return a specific implementation of its filesystem.File representation, and a handle to the underling fs handler

func MkToFile

func MkToFile(fromBase string, toBase string, file fs.File) fs.File

Create a File struct for a new, possibly (likely) non-existent file but based on the attributes of a given, real file This is handy for creating a target File for syncing to a destination Note that this expects any protocol part of the path to be removed

func RelativeFilePath

func RelativeFilePath(fromBase string, toBase string, localFilePath string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL