Skip to content

Does fs plugin even work on android? #2529

Open
@Grandkahuna43325

Description

@Grandkahuna43325

As of right now(fs version 2.0.0, tauri version 2.1.1) fs plugin doesn't seem to do anything besides throwing errors, at least for me. I assume I have correct permissions:

    {
      "identifier": "fs:scope",
      "allow": [
        {
          "path": "$DOWNLOAD"
        },
        {
          "path": "$DOWNLOAD/**"
        },
        {
          "path": "$APPDATA"
        },
        {
          "path": "$APPDATA/**"
        }
      ]
    },
    {
      "identifier": "fs:allow-write",
      "allow": [
        {
          "path": "$DOWNLOAD"
        },
        {
          "path": "$DOWNLOAD/**"
        },
        {
          "path": "$APPDATA"
        },
        {
          "path": "$APPDATA/**"
        }
      ]
    },

and correct code

        await copyFile("file.pdf", "file.pdf",  { fromPathBaseDir: BaseDirectory.AppConfig, toPathBaseDir: BaseDirectory.Download});

With this setup I don't get any errors, but I also don't get any files in Downloads directory. Can someone try to copy some file to Downloads directory on android?

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: androidAndroid specific issuesplugin: fsIncludes former "fs-extra" and "fs-watch" pluginsquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions