Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70795

Ionic Capacitor Directory not disaplay in reality only showing the temp path with real path there is no directory

$
0
0

@lalitkumarbaghel wrote:

Ionic Capacitor Directory not disaplay in reality only showing the temp path with real path there is no directory.I used the official documents and code from here https://capacitor.ionic framework.com/docs/apis/filesystem/.but its all things running read directory make directory.but when i check there is not folder exist in reality.please tell how to show the real folder.

 try {
      Filesystem.writeFile({
        path:"ABCD/"+fileName+".txt",
        data:data,
        directory:dir,
        encoding: FilesystemEncoding.UTF8
      }).then(data=>{

              Filesystem.getUri({
                directory:dir,
                path:"ABCD/"+fileName+".txt",
              }).then(
                result => {
                  let path = Capacitor.convertFileSrc(result.uri);
                  console.log(path);
                },
                err => {
                  console.log(err);
               }
           );


        this.toast.show("File saved to ABCD");
      })
    } catch(e) {
      console.error('Unable to write file', e);
    }

i get this virtual path when i check my android device after make apk file install.when this function calll but i never get the folder in reality.but its return this path but in this path this folder and file is not exist

my question is where is ionic team ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>