Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SameDisk (0.19 sec)

  1. internal/disk/disk_windows.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    // SameDisk reports whether di1 and di2 describe the same disk.
    func SameDisk(disk1, disk2 string) (bool, error) {
    	return false, nil
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 951 bytes
    - Viewed (0)
  2. internal/disk/disk_unix.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"syscall"
    )
    
    // SameDisk reports whether di1 and di2 describe the same disk.
    func SameDisk(disk1, disk2 string) (bool, error) {
    	st1 := syscall.Stat_t{}
    	st2 := syscall.Stat_t{}
    
    	if err := syscall.Stat(disk1, &st1); err != nil {
    		return false, err
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.2K bytes
    - Viewed (0)
  3. internal/disk/root_disk.go

    func IsRootDisk(diskPath string, rootDisk string) (bool, error) {
    	if runtime.GOOS == "windows" {
    		// On windows this function is not implemented.
    		return false, nil
    	}
    	return SameDisk(diskPath, rootDisk)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.1K bytes
    - Viewed (0)
Back to top