[UWP]下载中创建的文件夹路径很长 [英] [UWP]Created folder in downloads has long path

查看:57
本文介绍了[UWP]下载中创建的文件夹路径很长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

我开发UWP应用程序并遇到下一个问题,但在winrt中我们有同样的问题:

I develope UWP app and have the next problem, but in winrt we had same:

如果我创建在downloads文件夹中它有正确的可见名称,但如果我复制它的路径 - 它很长并且包含应用程序的PackageFamilyName。

If i create folder in downloads folder it have correct visible name, but if i copy it path - it is very long and contains PackageFamilyName of application.

我的问题与长路径有关,它对于我。如何修复文件夹的长路径,默认情况下在下载时创建的内容?

My problem is related to the long path and it critical for me. How I can fix long path of folder, what created on downloads as default?

推荐答案

究竟在哪里你复制那个文件夹?如果将其复制到应用程序文件夹中,它显然将包含应用程序的PackageFamilyName,因为这是存储应用程序文件的位置。

Where exactly do you copy that folder? If you copy it inside your application folder, it will obviously contain the PackageFamilyName of the application, since that is where your app files are stored.

您可以使用System.IO.Path类来轻松操作文件和文件夹名称。

You can use System.IO.Path class to easily manipulate file and folder names.


这篇关于[UWP]下载中创建的文件夹路径很长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆