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");

  }

posted @ 2013-02-04 14:37  Dieaz5  阅读(162)  评论(0编辑  收藏  举报