Questions tagged [getfiles]
266 questions
0
votes
2 answers
Problems With File Name Matching in C#
I had posted something similar to this before, but it was about dealing with the Command Prompt. As in the other instance, I'm trying to do some automated file cleanup prior to a backup in an ERP system I perform maintenance on in order to smooth…

Michael McCauley
- 853
- 1
- 12
- 37
0
votes
1 answer
Cannot applicable getFile method to string type
I have a problem with, upload File in grails. It's a bit weird because it's working in one method but doesn't working in other. Here is my code:
html:
|
![]()
LEEL
0
votes
2 answers
Directory.GetFiles does not refresh the results/cacheI have a problem with recursivly scanning through folders and looking for a file.
It all work fine, untill some files or folders change.
It never updates the folderlistcache it seems.
Is there anyway to refresh or clearcache, so it will rescan the…
![]()
Marice
0
votes
1 answer
System.IO.GetFiles doesn't return files in subfolders even if i use SearchOption.AllDirectoriesIn my code, I use the GetFiles()-method to count the number of files inside a given folder
Lets assume the following folderstructure:
FolderA
File1
File2
File3
FolderB
File4
…
![]()
User999999
0
votes
2 answers
how to get file from a passworded area using PHPI want to make a script that takes a URL to a file and will import that file to a specific folder in my web server
how to request a file if it's in a passworded area, i have an account "username/password" but how can i make the request to that file…
![]()
trrrrrrm
0
votes
1 answer
GetFiles example throwing exceptionUsing the new Office 365 Tools API I get: "The property 'Puid' does not exist on type 'Microsoft.Office365.SharePoint.UserInformation'. Make sure to only use property names that are defined by the type." when enumerating the returned contents of the…
![]()
user3685363
0
votes
3 answers
Adding many items to listbox freezes UII am making a program which finds duplicate files in a directory, but when the directory it is searching has too many of those files it will crash the application.
I was wondering if there is a way to buffer the amount of files it grabs.
Here is…
user3329290
0
votes
2 answers
Count Image Files in DirectoryI'm trying to enumerate and import a number of image files in a folder. My current code for counting the images is as follows -
Dim fullpath As String
fullpath = TxtPath.Text + "\"
Dim FileDirectory As New IO.DirectoryInfo(fullpath)
Dim FileJpg…
![]()
Optimaximal
0
votes
0 answers
HTML5 File System API error "Cannot read property 'root' of undefined"When I try to write a file I am getting this error in Google Chrome:
Uncaught TypeError: Cannot read property 'root' of undefined FileSystemApi.html:29
onButtonSaveClick FileSystemApi.html:29
onclick
My sample code is as follows
var…
![]()
user3415042
0
votes
3 answers
Get files by filename maskfileNameMaskI need load files from directory by filename mask, if filename begin with "Table 1" work well, but if directory contain any files: "TestTable 1 someValue.xlsx" or "Test Table 1 someValue.xlsx" my mask not work.
If I change mask to…
![]()
user3305198
0
votes
3 answers
get list of files in directory that are 3 extensions and only numbersI am using this code:
var list = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory, _globalSetting.CompanyCode + "trn*.???", SearchOption.TopDirectoryOnly).ToList();
foreach (var listitem in list)
{
…
![]()
ErocM
0
votes
1 answer
Get images url from folder Filter only images from folderI use the code suggested here
https://stackoverflow.com/a/18316453
This is what I have now.
![]()
Wayne
0
votes
1 answer
Get Files from absolute path on pc in android ProjectI am trying to build a android app where in a part I need to get the containing file names of a specific folder.
String DirectoryPath = "D:\\Images";
File Directory = new File (DirectoryPath);
for(File f:Directory.listFiles())
{
String name =…
![]()
MCanSener
0
votes
1 answer
Talend - Process files hosted in a remote machine over FTPI want to access a folder in a remote machine (over FTP), and process all the .txt files that folder contains.
I'm doing something like: tFTPConnection ------> tFTPFileList ------> ? ------> tFileInputDelimited
How can I than process those files?…
![]()
user2144555
0
votes
1 answer
Async in Windows store application c#Hello there is something very strange happening here, i have these lines of code working perfectly in another testing solution but when i have them in my main solution i have a problem:
When i run it normally, it doesnt do anything, when i run in…
![]()
Stefanos Chrs
|