Hi, everyone,
I've been still working on my own analysis tool based on SDK 2.0\Sdl.SDK.ProjectAutomation.Samples.BatchAnalyze and I have just encountered another problem, hoping somebody will help me out this time again
During creation of a new project, If there is no valid file to be processed (say, the only file being processed is a Word file with revision history), a project-creation process will be terminated with an error (even a sdlproject file won't have been created, yet, then).
I'm not sure that's why but the project folder created during the process containing only a source language folder cannot be deleted with newProject.Delete(); or System.IO.Directory.Delete(...);, etc.
I can think of at least one way to remove the folder by detecting a process ID holding lock on it, killing the process, and deleting the now-free folder (to be honest, I've never done that before ) but is there any other way that's more proper?
I'll look forward to hearing from any one of you, experts
Thanks in advance.
Ryota