github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/lib/file/file_other.go (about)

     1  //+build !windows
     2  
     3  package file
     4  
     5  import "os"
     6  
     7  // OpenFile is the generalized open call; most users will use Open or Create
     8  // instead. It opens the named file with specified flag (O_RDONLY etc.) and
     9  // perm (before umask), if applicable. If successful, methods on the returned
    10  // File can be used for I/O. If there is an error, it will be of type
    11  // *PathError.
    12  //
    13  // Under both Unix and Windows this will allow open files to be
    14  // renamed and or deleted.
    15  var OpenFile = os.OpenFile