osutil

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package osutil implements utilities for native OS support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HideFile

func HideFile(path string) error

func Rename

func Rename(from, to string) error

Rename renames a file, while trying hard to succeed on various systems by temporarily tweaking directory permissions and removing the destination file when necessary. Will make sure to delete the from file if the operation fails, so use only for situations like committing a temp file to it's final location.

func ShowFile

func ShowFile(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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