Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ERROR_FILE_NOT_FOUND (0.12 sec)

  1. cmd/os_windows.go

    	return entries, nil
    }
    
    func globalSync() {
    	// no-op on windows
    }
    
    func syscallErrToFileErr(dirPath string, err error) error {
    	switch err {
    	case nil:
    		return nil
    	case syscall.ERROR_FILE_NOT_FOUND:
    		return errFileNotFound
    	case syscall.ERROR_ACCESS_DENIED:
    		return errFileAccessDenied
    	default:
    		// Fails on file not found and when not a directory.
    		return osErrToFileErr(&os.PathError{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. internal/lock/lock_windows.go

    // are not octet combinations. Providing access to NT
    // acls is out of scope here.
    func Open(path string, flag int, perm os.FileMode) (*os.File, error) {
    	if path == "" {
    		return nil, syscall.ERROR_FILE_NOT_FOUND
    	}
    
    	pathp, err := syscall.UTF16PtrFromString(fixLongPath(path))
    	if err != nil {
    		return nil, err
    	}
    
    	var access uint32
    	switch flag {
    	case syscall.O_RDONLY:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top