Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for removeLastDir (0.1 sec)

  1. cmd/import-boss/main.go

    	_, err := os.Stat(filepath.Join(filepath.Dir(path), goModFile))
    	return err == nil
    }
    
    // removeLastDir removes the last directory, but leaves the file name
    // unchanged. It returns the new path and the removed directory. So:
    // "a/b/c/file" -> ("a/b/file", "c")
    func removeLastDir(path string) (newPath, removedDir string) {
    	dir, file := filepath.Split(path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top