Skip to content

Cordova to Capacitor File Conversion

1 minPatrick Miller

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

android · capacitor · cordova · cross-platform · filesystem · hybrid-apps · ios · javascript · migration · mobile-development · native-apps · typescript


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/