Hello everyone,
after spending a lot of time on this, i concluded to my initial thoughts, that is, FileSystemUtils.GetFolder() locks the files in that folder and i cannot delete them after accessing them though that method. I have verified this in many ways, stepped through the code and as soon as i get the files using that method, they are locked.
Is that a known issue? Is there a workaround for this?
I thought that FileSystemUtils.GetFolder() would just work as simple as :
' Get folder.
Dim folder As System.IO.DirectoryInfo = ...
' Get files for that folder.
Dim Files() As System.IO.FileInfo = folder.GetFiles()
The above code works fine without locking the files .. but it would be great if i could user DotNetNuke FolderInfo and FileInfo objects instead.
I appreciate any comments you can make on this.
Thanks,
M. Mourouti