c# - Xamarin.Forms: Directory.GetFiles -


i developing xamarin forms application. trying getting lifes certian server directory. peace of code work on of .net applications.

public static string[] getfiles {     string[] filepaths = directory.getfiles("www.site.com/files"); } 

however directory class not exist in system.io in xamarin. there other way this?

pcl's not support direct file i/o classes, because windows phone supports isolatedstoarge file i/o.

you can either use dependencyservice inject platform specific file i/o forms app, or @ pcl-friendly file i/o packages pclstorage.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -