WP7获取ISolatedStorage指定文件夹下所有子文件夹或者文件数

获取ISolatedStorage指定文件夹下所有子文件夹:

  string[] folderlist;

  IsolatedStorageFile iso = IsolatedStorageFile.GetUserStoreForApplication();

  if(iso.DirectoryExists("folder"))

  {

  folderlist=iso.GetDirectoryNames(System.IO.Path.Combine("folder", "*"));

  }

获取ISolatedStorage指定文件夹下的文件数:

string[] folderlist;

  IsolatedStorageFile iso = IsolatedStorageFile.GetUserStoreForApplication();

  if(iso.DirectoryExists(@"_Safety/"))

  {

  folderlist=iso.GetFileNames(@"_Safety/*.txt");

  }

原文地址:https://www.cnblogs.com/dieaz5/p/2891751.html