gopkg.in/essentialkaos/ek.v3@v3.5.1/path/path_windows.go (about)

     1  // +build windows
     2  
     3  // Package path provides methods for working with paths (fully compatible with base path package)
     4  package path
     5  
     6  // ////////////////////////////////////////////////////////////////////////////////// //
     7  //                                                                                    //
     8  //                     Copyright (c) 2009-2016 Essential Kaos                         //
     9  //      Essential Kaos Open Source License <http://essentialkaos.com/ekol?en>         //
    10  //                                                                                    //
    11  // ////////////////////////////////////////////////////////////////////////////////// //
    12  
    13  import (
    14  	"errors"
    15  )
    16  
    17  // ////////////////////////////////////////////////////////////////////////////////// //
    18  
    19  //ErrBadPattern indicates a globbing pattern was malformed
    20  var ErrBadPattern = errors.New("syntax error in pattern")
    21  
    22  // ////////////////////////////////////////////////////////////////////////////////// //
    23  
    24  // Base returns the last element of path
    25  func Base(path string) string {
    26  	return ""
    27  }
    28  
    29  // Clean returns the shortest path name equivalent to path by purely lexical processing
    30  func Clean(path string) string {
    31  	return ""
    32  }
    33  
    34  // Dir returns all but the last element of path, typically the path's directory
    35  func Dir(path string) string {
    36  	return ""
    37  }
    38  
    39  // Ext returns the file name extension used by path
    40  func Ext(path string) string {
    41  	return ""
    42  }
    43  
    44  // IsAbs reports whether the path is absolute
    45  func IsAbs(path string) bool {
    46  	return false
    47  }
    48  
    49  // Join joins any number of path elements into a single path, adding a separating slash if necessary
    50  func Join(elem ...string) string {
    51  	return ""
    52  }
    53  
    54  // Match reports whether name matches the shell file name pattern
    55  func Match(pattern, name string) (matched bool, err error) {
    56  	return false, nil
    57  }
    58  
    59  // Split splits path immediately following the final slash, separating it into a directory and file name component
    60  func Split(path string) (dir, file string) {
    61  	return "", ""
    62  }
    63  
    64  // IsSafe return true is given path is safe to use (not points to system dirs)
    65  func IsSafe(path string) bool {
    66  	return false
    67  }
    68  
    69  // IsDotfile return true if file name begins with a full stop
    70  func IsDotfile(path string) bool {
    71  	return false
    72  }