Get system filepath using Capacitor Filesystem API - capacitor

currently I'm working through the tutorial of building my first app with using the ionicframework with angular and I would like to know where the photos are actually saved on my filesystem? I tried to find out using Filesystem.getURI() but /DATA/1614347102940.jpeg doesn't really help me.
Does anyone know what the absolue filepath on my system is or how I can find out?
Help is much appreciated.

Assuming you're using the Filesystem plugin. The plugin abstracts each operation to a specific special directory on the device. Used like so:
import { Filesystem, Directory } from '#capacitor/core';
Directory.Documents
Directory.Data
Directory.Cache
Directory.External
Directory.ExternalStorage
source code

Related

How do I open a file in my IOS SwiftUI App?

I have an app that saves data in my Documents directory. It would be very useful to be able to mail the data file to some other users so they can also use the gathered information. I have spent most of today looking for a solution, but have not found any answers basic enough to be of any help. So, I would greatly appreciate some help to get me started. Like, what do I need to do to make IOS aware that I am interested in opening ( in my case actually only copying the file to the app’s Documents directory for further chewing) a file with, for example the .xyz-extension and how this is done.
Much appreciated,
stalle
Running on a real device, there seems to be no problem.

FMS VOD streaming: How can I access content that was uploaded to the webroot/vod directory?

I have recently started working with a fresh install of FMS 4.5.0 and am having some issues getting my media to load with the VOD application.
After uploading some of my own FLV/F4V content to "/webroot/vod/", I am currently only able to load the samples from the installation.
Is there some sort of configuration that needs to be made to access my media?
Do I need to create a manifest for each video?
I have been running tests through:
http://www.osmf.org/configurator/fmp/
And have had luck accessing the videos that came with the install by using the following:
Video Source (URL): http://[my host]/vod/sample1_1000kbps.f4v
But when I change this to point to one of my recently uploaded videos it fails everytime.
Another strange note, I was able to play one of the samples but then I changed its name and it was still able to load that one specific video using the same filename when the file's name had changed. This leads me to believe that it isn't really loading the right files or perhaps I am uploading to the wrong directory. But I can't find any other directories that have video in them.
Please let me know if there is any more info you need to help me. I'm fairly new to this and am not sure what to include.
Thanks in advance for any help!
EDIT: This was a pathing issue.
This has been resolved.
Apparently my webroot directory for the server was not set up correctly and after it was pointing to the right directory it was fixed.

Flash Builder 4 import services .as files

I am working on a shared project in Flash Builder 4. Our data is coming through web services. We have put the generated .as files into vss so that we can share them. What I can't figure out is how to import those files. I see the files that others have created under my services directory but I can't figure out how to get them to appear in my Data/Services view. Does anybody know how to do this?
It looks like this information is in a file with an .fml extension. This is located in your project.model directory. Besides the fact that you can't get to that file from within flash builder to check it out, I don't know that it is a good idea to source control a project file. We are looking at what options we have to help everyone maintain these service files.

not able to find nunit.framework while using icsharplibrary

I am trying to code for unzipping a file after uploading it on the sever and using following library to achieve this:
http://downloads.sourceforge.net/sharpdevelop/SharpZipLib_0855_SourceSamples.zip
But i am not able to add reference nunit.framework in my application. Where can i find this framework? I am not able to find it in the sample project that they have provided.
Thanks
You should be able to find what you are looking for at
NUnit Downloads

"Untar" file on iPhone

I'm writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app's Documents folder.
I'm using tar/gzip because I want to download a whole bunch of small files in one HTTP request, to make everything nice and fast.
I've investigated solutions like http://www.feep.net/libtar/, but as a C/Objective-C newb, I can't get any of them to compile for the iPhone platform.
(I felt like I should just be able to do a system call to "tar -zxvf myfile.tar.gz", but it would appear it's not that easy!)
So is there a simple way to just un-tar a file on the iPhone? Or am I going about this all wrong, and is there a better way to do this?
Thanks in advance!
Nik
This blog post should help you:
http://blog.hawkey.org/?p=332
EDIT: Google cache version of the same page which actually links to a forum post here which links to a Google Code project here, containing some code which implements unzipping on iOS.
Here is a light untar library for iOS : https://github.com/mhausherr/Light-Untar-for-iOS
Complete blog post about the solution : http://blog.octo.com/en/untar-on-ios-the-pragmatic-way/
Hope this helps,
Vincent
I took a different approach by building libarchive and bz2lib as a static library for iOS. You can find it here:
http://github.com/davepeck/iOS-libarchive/