I am copying the file from Resources to a folder in Documents but I can’t see the file after copying. Following it in the debugger it says it has been copied. What am I missing?
Var source As FolderItem
Var destination As FolderItem
// File inside Resources
source = SpecialFolder.Resource("Sample.bgcktext")
Var ASfolder As FolderItem = SpecialFolder.Documents.Child("BGCKData")
If ASfolder.exists = false then
ASfolder.CreateFolder
End if
// Target location
destination = SpecialFolder.Documents.child("BGCKData").child("Sample.bgcktext")
If source <> Nil And source.Exists Then
If Not destination.Exists Then
source.CopyTo(destination)
End If
End If