Questions tagged [storagefolder]
42 questions
7
votes
1 answer
Laravel 5.3 Is safe remove/delete storage folder from Laravel project?
I have a Laravel 5.3 project versioned, and files in this folder are constantly changing.
Is safe to remove from version control system?
If I delete that folder from my working copy, Laravel can keep working?
folder structure

Maximiliano Sosa
- 388
- 1
- 7
- 18
4
votes
1 answer
Access a StorageFolder with ms-appdata
I have an app where I have to store and use the absolute paths of folders and files. I have a very simple problem. When I store the path of a folder like this: "ms-appdata:///local/my_folder" and try to get a StorageFolder from this path, it throws…

VSZM
- 1,341
- 2
- 17
- 31
4
votes
1 answer
Saving files in Windows Store apps
My program handles all the files specified by the user. After preferable to retain the modified file to the directory of the source file. StorageFolder.GetFolderFromPathAsync method returns "Access Denied".
File type associations in the manifest can…

Daria Korosteleva
- 171
- 2
- 12
3
votes
1 answer
Getting Folder from folder RelativeID - Windows Phone
How can I get folder from folder relative ID in Windows Phone 8.1?
StorageFolder folder = await StorageFolder.GetFolderFromPathAsync(path);
this code works with full path, not relativeID.

Metehan Toksoy
- 1,885
- 3
- 22
- 39
3
votes
5 answers
How to get all files in a StorageFolder in Windows Phone Runtime?
I want to get all files in a folder and its sub folders. but a flat query like this:
var allFiles = await myFolder.GetFilesAsync(Windows.Storage.Search.CommonFileQuery.OrderByName);
throws a ArgumentException exception:
A first chance exception of…

user3646098
- 299
- 3
- 14
3
votes
0 answers
Why/When may StorageFolder.CreateFolderAsync fail?
The documentation for StorageFolder.CreateFolderAsync says: "If you try to create a subfolder in a virtual folder like a library or a file group, this method may fail". That's all, no further details.
Does anyone have some deeper knowledge or…

Sebastian Negraszus
- 11,915
- 7
- 43
- 70
2
votes
3 answers
Fastest way to move folder to another place in UWP
I have SSD storage and this code takes 32 seconds to move ~200 files and ~40 folders to the same storage in either debug or release mode. total size of folder is ~30 MB.
How can i make this faster?
// moves content from local folder to target…

M.kazem Akhgary
- 18,645
- 8
- 57
- 118
2
votes
1 answer
Request permanent access to a folder from UWP application
At the startup of my application, it should scan the files of a given folder. The folder is in an arbitrary path defined by the user, for instance "E:\Files"
I could make the user choose an StorageFolder using a FolderPicker.PickSingleFolderAsync,…

SuperJMN
- 13,110
- 16
- 86
- 185
2
votes
1 answer
How to convert an Image URL into a StorageFile?
I am working with Unsplash API to get Images. When I send the request for an Image, part of the answer is the Image URL which looks like…

Asem Khen
- 317
- 3
- 15
2
votes
1 answer
Simple method to check if a directory is empty in WinRT (async API)
I wanted to create a simple IsEmpty(StorageFolder directory) method that works in WinRT apps, i.e. that uses the async API. I don't see a relevant method in the documentation for the StorageFolder class, and I also haven't found anything in my…

CanisLupus
- 583
- 5
- 15
1
vote
2 answers
check if a folder exists uwp xamarin.forms
i am trying to create a folder in the downloads folder using uwp, and in this folder i want to create pdf files. this is what is supposed to happen: the first time the button is clicked, the folder is created and so is a pdf file corresponding to a…

rana hd
- 355
- 3
- 18
1
vote
0 answers
UWP: UnauthorisedAccessException to LocalState folder
UnauthorisedAccessException in c# UWP Application
I am suddenly getting this error when trying to access files in LocalState. Haven't made any changes to code. Worked fine until this morning.
//in public class
Windows.Storage.StorageFolder…

Dodge
- 17
- 2
1
vote
1 answer
UWP StorageFile.CopyAsync() Throwing Error: "Value does not fall within the expected range."
I am trying to overwrite a file with a new version inside of an AppData sub-directory.
Current process is that the user has to select the File to overwrite, and the folder directory it sits in separately so that I can add them to the future access…

JoeTomks
- 3,243
- 1
- 18
- 42
1
vote
2 answers
absolute path file - is located in special KnownFolders.PicturesLibrary
In my application targeting UWP i want to disable a save ("overwrite") button, if the file (modified in my application) has been opened from location where the application cannot write (in this case "Save As" will only be available). The application…

Michal.Jan008
- 135
- 11
1
vote
1 answer
Differences between "DeleteAsync" and "File.Delete" and why "DeleteAsync" doesn't remove file?
Wondering why "DeleteAsync" doesn't delete file but "File.Delete" will do it. Can someone explain this to me? At first I think that the file is open but if the file is open "File.Delete" shouldn't delete it also or...?
private static async void…

Weissu
- 409
- 3
- 15