getfiles Questions

2

I'm new to React Native framework. I'm trying to use it for make a cross-platform mobile app. I want to open and read a local XML file, present in my app folder, but I can't work out how to do this...
Preserve asked 25/11, 2017 at 9:47

9

Solved

I am trying to display a list of all files found in the selected directory (and optionally any subdirectories). The problem I am having is that when the GetFiles() method comes across a folder that...
Akim asked 5/10, 2008 at 20:0

24

Solved

I have a little problem with my function. I would like to get all files in many directories. Currently, I can retrieve the files in the file passed in parameters. I would like to retrieve the...
Boomkin asked 4/1, 2017 at 11:22

6

Solved

I have this code to list all the files in a directory. class GetTypesProfiler { static List<Data> Test() { List<Data> dataList = new List<Data>(); string folder = @"DIRECTOR...
Apps asked 9/6, 2011 at 14:17

1

I made a module for uploading images in frontend. Magento 2 saves files in a special way. For example: uploading file - file.png, path to file - pub/media/[module_folder]/f/i/file.png. How to ...
Cyclograph asked 16/2, 2016 at 9:52

3

Solved

I've read discussions about difference between Directory.EnumerateFiles and Directory.GetFiles. I understand that internally they both use System.IO.FileSystemEnumerableFactory.CreateFileNameItera...
Photocell asked 10/4, 2015 at 7:31

3

Solved

I just stumbled upon an undocumented behavior of the GetFiles methods in System.IO.Directory. Whenever the searchPattern parameter passed to the method contains a reserved Windows device name, suc...
Lindsay asked 31/12, 2012 at 17:34

1

I need the solution for sdk version 17 or below this is my method. public static String getRealPathFromURI_API11to18(Context context, Uri contentUri) { String[] proj = { MediaStore.Images.Media...
Biebel asked 28/8, 2017 at 6:33

5

Solved

.aspx file: <%@ Import Namespace="System.IO" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Explorer</title> </head> &lt...
Tribrach asked 18/5, 2011 at 15:29

2

Solved

# create SSHClient instance ssh = paramiko.SSHClient() list = [] # AutoAddPolicy automatically adding the hostname and new host key ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.l...
Disastrous asked 8/11, 2018 at 2:42

1

Solved

I'm using Directory.GetFiles() to search files in a multi-folder directory and some of these folders are too big so the search could take up to 60 seconds. In the code below a search starts a secon...
Fulminant asked 22/10, 2017 at 15:26

5

I did a function in private section of my website, to get and display some file of a repository. Below is the function I did : function getFilesChantier($devis, $cp) { // Si dossier cp n'existe pa...
Donkey asked 12/8, 2016 at 5:52

3

Solved

Is there a way to simplify this linq expression, or is there a better way of doing this? Directory.GetFiles(dir, "*.*", SearchOption.AllDirectories) .Where(s => s.EndsWith(".jpg", StringCompar...
Communard asked 9/11, 2012 at 2:0

1

Solved

I'm just starting with F# so I thought I would try some simple tasks. This lists the full paths to the xml files in a directory: System.IO.Directory.GetFiles("c:\\tmp", "*.xml") |> Array.iter ...
Lubalubba asked 18/2, 2016 at 12:18

2

Solved

I know that in the same directory where my code is being executed some files are located. I need to find them and pass to another method: MyLib.dll Target1.dll Target2.dll Foo(new[] { "..\\..\\Ta...
Grandnephew asked 17/7, 2010 at 11:44

6

Solved

Directory.GetFiles method fails on the first encounter with a folder it has no access rights to. The method throws an UnauthorizedAccessException (which can be caught) but by the time this i...
Gadget asked 8/9, 2009 at 10:23

6

Solved

I have directory that contains nearly 14,000,000 audio samples in *.wav format. All plain storage, no subdirectories. I want to loop through the files, but when I use DirectoryInfo.GetFiles() on ...
Biestings asked 23/10, 2011 at 8:38

4

I recently bumped into a weird functionality from Microsoft: Let's assume our folder c:\tmp123 contains 3 files - 1.txt 2.txtx 3.txtxt a) Invocation of Directory.GetFiles(@"C:\tmp123", "*.txt") y...
Gangplank asked 10/1, 2012 at 8:49

4

Solved

I am wanting to get a string array of paths of files that do not have extensions. They are binary files with no extensions if that helps. For example, I am loading a group of file paths out of a f...
Circular asked 5/6, 2014 at 16:56

1

Solved

I'm using IO.Directory.GetFiles to search for files in a folder. After the searching is done, I can't use files in this folder until my application is closed. I haven't found any Dispose functions ...
Lodhia asked 26/5, 2014 at 20:35

4

Solved

I am using the following line to return specific files... FileInfo file in nodeDirInfo.GetFiles("*.sbs", option) But there are other files in the directory with the extension .sbsar, and...
Imparisyllabic asked 27/11, 2013 at 11:13

8

Solved

I'd like to retrieve a list of files whose extensions match a specified string exactly. DirectoryInfo di = new DirectoryInfo(someValidPath); List<FileInfo> myFiles = new List<FileInfo>...
Mathura asked 6/4, 2011 at 21:17

3

Solved

I'm using C# .NET 4 with VS 2010. When Iterating over some paths, I'm running this line: files = Directory.GetFiles(path, searchPattern); I get an exception when the path is the documents and ...
Momism asked 25/5, 2013 at 18:11

6

Solved

Use this code for search files in directory: FileInfo[] files = null; string path = some_path; DirectoryInfo folder = new DirectoryInfo(path); files = folder.GetFiles("*.*", SearchOption.AllDirect...
Mckenzie asked 18/3, 2013 at 13:1

2

Solved

Possible Duplicate: Can you call Directory.GetFiles() with multiple filters? I have a string array: string[] pattern={"*.jpg","*.txt","*.asp","*.css","*.cs",.....}; this string pat...
Kast asked 15/1, 2013 at 2:36

© 2022 - 2024 — McMap. All rights reserved.