Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions packages/capacitor-plugin/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ interface FilesystemPlugin {
data: string;
recursive?: boolean;
}): Promise<void>;
mkdir(options: { path: string; recursive?: boolean }): Promise<void>;
}

// Extend Window interface to include Capacitor
Expand Down Expand Up @@ -465,16 +464,6 @@ export class FileTransferWeb extends WebPlugin implements FileTransferPlugin {
throw new Error("Failed to convert blob to base64");
}

// Create any parent directories needed
const pathParts = path.split("/");
if (pathParts.length > 1) {
const directory = pathParts.slice(0, -1).join("/");
await filesystem.mkdir({
path: directory,
recursive: true,
});
}

// Write the file
await filesystem.writeFile({
path: path,
Expand Down