I have a raster file for which I know the the workspace, but not the filename (it is a temporary file generated by operations from my program that randomizes its name on creation, i.e. "ras457"). I cannot store the raster at time of generation for various reasons, so is there a way to programatically grab the raster from the folder without knowing its exact name and store it in an IGeoDataset?
The raster is stored in a temporary folder created when I run the program, so it will be the only item in the folder.
One route I have considered exploring is using .NET's directory info class to get the names of the contents of the folder and extracting it from there, but there may be a simpler way to accomplish this that I have not considered.