Move MakeFile/Dir from HostUtil to host_path vol

The MakeFile and MakeDir methods in the HostUtil interface only had one
caller -- the Host Path volume plugin. This patch relocates MakeFile and
MakeDir to the Host Path plugin itself.
This commit is contained in:
Travis Rhoden
2019-08-26 10:46:08 -06:00
parent 038e5fad75
commit 107039a265
5 changed files with 28 additions and 62 deletions

View File

@@ -57,10 +57,6 @@ type HostUtils interface {
MakeRShared(path string) error
// GetFileType checks for file/directory/socket/block/character devices.
GetFileType(pathname string) (FileType, error)
// MakeFile creates an empty file.
MakeFile(pathname string) error
// MakeDir creates a new directory.
MakeDir(pathname string) error
// PathExists tests if the given path already exists
// Error is returned on any other error than "file not found".
PathExists(pathname string) (bool, error)