I have an app that can be used to archive files where I’m using the MBS Xojo Compression plugin. I modified the code from the zip folder example project to give the user an option to preserve the original folder path in the archive file. The following code does that in macOS by recreating the original folder path within the archive file but in Windows it merely copies the specified files directly into the archive folder without creating the parent folders. I don’t know if this is an issue with the plugin or the result of differences between the file systems in macOS and Windows.
If not folder.Child(file.Parent.NativePath).Exists then
folder.Child(file.Parent.NativePath).CreateAsFolder
End if
If folder.Child(file.Parent.NativePath) <> Nil and folder.Child(file.Parent.NativePath).Exists then
file.CopyFileTo(folder.Child(file.Parent.NativePath))
Else
file.CopyFileTo(folder)
End if