mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
bump mrunalp/fileutils 7d4729fb36185a7c1719923406c9d40e54fb93c7
no significant changes, other than some linting fixes Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
Collection of utilities for file manipulation in golang
|
||||
|
||||
The library is based on docker pkg/archive but does copies instead of handling archive formats.
|
||||
The library is based on docker pkg/archive pkg/idtools but does copies instead of handling archive formats.
|
||||
|
||||
+3
-6
@@ -139,19 +139,16 @@ func CopyDirectory(source string, dest string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Copy the file.
|
||||
if err := CopyFile(path, filepath.Join(dest, relPath)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return CopyFile(path, filepath.Join(dest, relPath))
|
||||
})
|
||||
}
|
||||
|
||||
// Gives a number indicating the device driver to be used to access the passed device
|
||||
func major(device uint64) uint64 {
|
||||
return (device >> 8) & 0xfff
|
||||
}
|
||||
|
||||
// Gives a number that serves as a flag to the device driver for the passed device
|
||||
func minor(device uint64) uint64 {
|
||||
return (device & 0xff) | ((device >> 12) & 0xfff00)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user