Cordova to Capacitor File Conversion

1 min read

A reference guide for mapping file system directory aliases when migrating from Cordova to Capacitor, covering iOS and Android platform differences.

Cordova and Capacitor use different conventions and aliases to refer to standard directories on iOS and Android.

I checked the source code and here is how the different aliases map up:

Android Conversion

iOS Conversion

Sources:

  1. https://capacitorjs.com/docs/apis/filesystem#enums
  2. https://cordova.apache.org/docs/en/11.x/reference/cordova-plugin-file/