I am programming with ArcObjects and trying to output a raster to a folder path that contains spaces. Before creating the raster I am trying to validate that the destination path is valid. The following call to IsWorkspace() returns false when the path has spaces. Is this by design or a problem? How should one test that a folder is a valid file-based raster workspace?
Dim aType As Type = Type.GetTypeFromProgID("esriDataSourcesRaster.RasterWorkspaceFactory") Dim obj As System.Object = Activator.CreateInstance(aType) Dim pWSF As ESRI.ArcGIS.Geodatabase.IWorkspaceFactory = obj return pWSF.IsWorkspace("C:\MyGISData\My Output Folder")