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
Post a Comment