Documentation ¶
Index ¶
- Constants
- Variables
- func AdjustFoldersInPath(relative_patch_filepath string, freelancer_folder Filesystem) string
- func RunAutopatcher()
- func Unzip(src, dest string) error
- func WriteToFile(path string, content []byte)
- type BadassRoot
- type File
- type Filesystem
- type Patch
- type PatchHash
- type PatcherData
- type RequestResp
Constants ¶
View Source
const AutopatherFilename = "autopatcher.latest_patch.json"
Variables ¶
View Source
var PATH_SEPARATOR = ""
Functions ¶
func AdjustFoldersInPath ¶
func AdjustFoldersInPath(relative_patch_filepath string, freelancer_folder Filesystem) string
AdjustFoldersInPatch replaces folder names in path to relevant case sensitive folders And creates them if they don't exist
func RunAutopatcher ¶
func RunAutopatcher()
func Unzip ¶
Unzip is copy paste from https://stackoverflow.com/questions/20357223/easy-way-to-unzip-file https://stackoverflow.com/a/24792688
func WriteToFile ¶
Types ¶
type BadassRoot ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (File) GetLowerPath ¶
func (File) GetRelPathTo ¶
type Filesystem ¶
type Filesystem struct { Files []File LowerMapFiles map[string]File Folders []File LowerMapFolders map[string]File }
func ScanCaseInsensitiveFS ¶
func ScanCaseInsensitiveFS(fs_path string) Filesystem
type PatcherData ¶
type RequestResp ¶
func Request ¶
func Request(url string) RequestResp
Click to show internal directories.
Click to hide internal directories.