Skip to content

Docs: Create persistent file example provides incorrect code #370

@breautek

Description

@breautek

Bug Report

Problem

https://github.com/apache/cordova-plugin-file#create-a-persistent-file-

LocalFileSystem.PERSISTENT does not exists. It should be window.PERSISTENT, as confirmed by a support ticket #369

The documentation should be updated to window.PERSISTENT. Note that, the window namespace is also used in create temporary file example

Command or Code

LocalFileSystem.PERSISTENT

Environment, Platform, Device

All platforms

Version information

cordova-plugin-file 6.0.3-dev - not sure when the documentation was written however.

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions