コード例 #1
0
        //删除整个壁纸目录
        public async Task <BaseApiResult> DeleteWallpaper(string path)
        {
            string dir = Path.GetDirectoryName(path);

            //不能删除非壁纸目录的文件
            if (!dir.Contains(AppManager.UserSetting.Wallpaper.WallpaperSaveDir))
            {
                return(BaseApiResult.ErrorState(ErrorType.Failed));
            }
            return(await WallpaperApi.DeleteWallpaper(path));
        }
コード例 #2
0
 public Task <BaseApiResult> DeleteWallpaper(string path)
 {
     return(WallpaperApi.DeleteWallpaper(path));
 }