Lines Matching refs:destPath
116 destPath, err := f.GetDestPath(codebaseDir, path, workspaceDir)
120 if err = f.CopyDirRecursive(info, path, destPath); err != nil {
137 destPath := filepath.Join(workspaceDir, relPath)
138 return destPath, err
144 destPath, err := f.GetDestPath(codebaseDir, sourcePath, workspaceDir)
150 return f.CopySymlink(sourcePath, destPath)
152 return f.CopyDirOnly(sourceInfo, destPath)
154 return f.CopyFile(sourceInfo, sourcePath, destPath)
158 func (f FileCopier) CopySymlink(sourcePath string, destPath string) error {
160 _, err := os.Lstat(destPath)
170 return os.Symlink(target, destPath)
175 func (f FileCopier) CopyDirOnly(sourceInfo os.FileInfo, destPath string) error {
176 _, err := os.Stat(destPath)
181 return os.Mkdir(destPath, sourceInfo.Mode())
188 func (f FileCopier) CopyFile(sourceInfo os.FileInfo, sourcePath, destPath string) error {
190 _, err := os.Lstat(destPath)
201 destFile, err := os.Create(destPath)
211 return os.Chmod(destPath, sourceInfo.Mode())
214 func (f FileCopier) CopyDirRecursive(sourceInfo os.FileInfo, sourcePath, destPath string) error {
215 if err := f.CopyDirOnly(sourceInfo, destPath); err != nil {
224 childDestPath := filepath.Join(destPath, childInfo.Name())