Skip to content

FileTransferService with Zip Files #16

Description

@vector-man

I'm trying to transfer a file from disk into a file inside of a zip file using FileTransferService, but it doesn't seem to work. It gives me a file not found error.

        var zip = ZipFileSystem.CreateZipFile(FileSystemManager.Default.ResolveFile(@"C:\Users\Michael\Documents\Platform Test\A\storage.zip"), FileSystemOptions.Default);

        var target = zip.ResolveFile(@"fileInZip");

        var source = FileSystemManager.Default.ResolveFile(@"C:\Users\Michael\Documents\p1 - Copy.png");

        IFileTransferService service = source.GetService<IFileTransferService>(new FileTransferServiceType(target));
        service.Start();
        service.WaitForAnyTaskState(TaskState.Finished);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions