@@ -176,40 +176,37 @@ protected string GetValidatedFilePath(string fileFullName)
176
176
}
177
177
178
178
/// <summary>
179
- /// This overloaded function expects a folder path and a file name and combines them. Checks if resulting full file name exist .
179
+ /// Returns the blueprint file path .
180
180
/// </summary>
181
- /// <param name="inputPath"></param>
182
- /// <param name="fileName"></param>
181
+ /// <param name="path"></param>
183
182
/// <returns></returns>
184
183
protected string GetValidatedFilePathForBlueprint ( string path )
185
184
{
186
-
187
- var blueprintFileName = AzureSession . Instance . DataStore . GetFiles ( ResolveUserPath ( path ) , "*.*" , SearchOption . TopDirectoryOnly )
185
+ var blueprintFileName = AzureSession . Instance . DataStore . GetFiles ( path , "*.*" , SearchOption . TopDirectoryOnly )
188
186
. Select ( file => Path . GetFileName ( file ) )
189
187
. FirstOrDefault ( name => String . Equals ( name , "blueprint.json" , StringComparison . OrdinalIgnoreCase ) ) ;
190
188
191
189
if ( blueprintFileName == null )
192
190
{
193
191
throw new Exception (
194
- $ "Cannot locate Blueprint.json in: { ResolveUserPath ( path ) } .") ;
192
+ $ "Cannot locate Blueprint.json in: { path } .") ;
195
193
}
196
194
197
- return Path . Combine ( ResolveUserPath ( path ) , blueprintFileName ) ;
195
+ return Path . Combine ( path , blueprintFileName ) ;
198
196
}
199
197
200
198
/// <summary>
201
- /// Combines input folder path and folder name and check if the resulting path exists .
199
+ /// Returns the artifacts folder path.
202
200
/// </summary>
203
- /// <param name="inputPath"></param>
204
- /// <param name="folderName"></param>
201
+ /// <param name="path"></param>
205
202
/// <returns></returns>
206
203
protected string GetValidatedFolderPathForArtifacts ( string path )
207
204
{
208
- var artifactsFolderName = AzureSession . Instance . DataStore . GetDirectories ( ResolveUserPath ( path ) )
205
+ var artifactsFolderName = AzureSession . Instance . DataStore . GetDirectories ( path )
209
206
. Select ( folder => Path . GetFileName ( folder ) )
210
207
. FirstOrDefault ( name => String . Equals ( name , "artifacts" , StringComparison . OrdinalIgnoreCase ) ) ;
211
208
212
- return artifactsFolderName == null ? null : Path . Combine ( ResolveUserPath ( path ) , artifactsFolderName ) ;
209
+ return artifactsFolderName == null ? null : Path . Combine ( path , artifactsFolderName ) ;
213
210
}
214
211
}
215
212
}
0 commit comments