Questions tagged [fileinfo]

fileinfo refers to the properties of a file that are not part of the content, but rather meta-information such as file type, last modification time, id in the file system, etc. Use this tag for questions about reading / modifying the fileinfo in programmatic ways.

Fileinfo refers to the properties of a file that are not part of the content, but rather meta-information such as file type, last modification time, id in the file system, etc. It can include custom properties such as ID3 tags for audio files.

The list of attributes may vary depending on the file system.

Use this tag for questions about reading / modifying the fileinfo in programmatic ways.

361 questions
0
votes
3 answers

(C#) FileInfo array out-of-bounds exception ... except it is not

Code: DirectoryInfo[] d2 = new DirectoryInfo[400]; d2 = moreDirect.GetDirectories(); //Declaring FileInfo array FileInfo[] f = new FileInfo[300]; f = d2[z].GetFiles(); if (d2[z].Exists) { if (f[y] != null) { ... //FileInfo does…
user234893
0
votes
1 answer

How to get files more than one extension?

I have a program which gives random files. It is simple but I'm quite new to this. Im having trouble with creating fileinfo list of files. I added a contextmenustrip which has multiple choose of file genre (e.g: video files, text files..) I wanted…
emmett
  • 193
  • 2
  • 14
0
votes
3 answers

FileInfo finds file, but File.Copy cannot find the file

I am trying to find a file with the last write date and copy it to a different location. It finds the file correctly, but when I try to copy it, it can't find the file it just found. This is in a SSIS script task. DirectoryInfo directory = new…
Rainhider
  • 806
  • 1
  • 17
  • 31
0
votes
2 answers

How do I compare one collection of files to another in c#?

I am just learning C# (have been fiddling with it for about 2 days now) and I've decided that, for leaning purposes, I will rebuild an old app I made in VB6 for syncing files (generally across a network). When I wrote the code in VB 6, it worked…
Dereleased
  • 9,939
  • 3
  • 35
  • 51
0
votes
0 answers

finfo class not found after APC installation

I asked my hosting company to install APC to speed up my site, but I'm getting this problem now: Fatal error: Class 'finfo' not found in /home/mydomain/public_html/printshop/upload_1-img.php on line 30 Line 30 is: $file_info = new…
user961627
  • 12,379
  • 42
  • 136
  • 210
0
votes
1 answer

How to set File Info from a script in Photoshop CS4

I am developing a Photoshop CS4 script and want to set some of the File Info properties on the open document from within the script. In other words, I want to do the equivalent of choosing File -> File Info and editing some properties, only via the…
Rik Heywood
  • 13,816
  • 9
  • 61
  • 81
0
votes
3 answers

Using Python, how do I get an array of file info objects, based on a search of a file system?

Currently I have a bash script which runs the find command, like so: find /storage/disk-1/Media/Video/TV -name *.avi -mtime -7 This gets a list of TV shows that were added to my system in the last 7 days. I then go on to create some symbolic links…
Nick Bolton
  • 38,276
  • 70
  • 174
  • 242
0
votes
1 answer

PHP Versions and exif_imagetype() Function

Is exif_imagetype() function not supported by the PHP Versions greater than 5.0?
Subedi Kishor
  • 5,906
  • 5
  • 35
  • 53
0
votes
1 answer

fileinfo not restricting pdf only

I am using the below script to validate if the uploaded files are pdf and if it is send it with phpmailer. It send the email but there is no attachment. Also, it allows me to attach non pdf files as well. Please…
E G
  • 37
  • 1
  • 10
0
votes
1 answer

Error Message with fileinfo verification

I am getting error message using the below infofile script to verify if the uploaded files are pdf and send via phpmailer. Line 66 is where the "default:" at. If I delete default the next line become error and so on. Not sure what is wrong with the…
E G
  • 37
  • 1
  • 10
0
votes
1 answer

The process cannot access the file in web services

Below is the exception I'm getting from my web service while deleting a Directory The process cannot access the file 'button.js' because it is being used by another process. 3/22/2013 11:16:51 AM : Exception :The process cannot access the file…
Sankar M
  • 4,549
  • 12
  • 37
  • 55
0
votes
1 answer

Checking file extension in CodeIgniter

I have a script which is supposed to tell the file type (jpg,bmp,png). The script is as follows: $file="pic/shimla.png"; $finfo = finfo_open(); $fileinfo = finfo_file($finfo, $file, FILEINFO_MIME); finfo_close($finfo); Now say if I had a file…
Saswat
  • 12,320
  • 16
  • 77
  • 156
0
votes
3 answers

Sort files in ascending order

I have project that converts a pdf to tif image files. And the out put files are numbered in the form. file1, file2, file3.......file20. When I do the code below to get the files, they are arranged in the list as shown below which is not correct.…
electricalbah
  • 2,227
  • 2
  • 22
  • 36
0
votes
3 answers

Can FileInfo.Length be cast as an integer?

I am using FileInfo.Length in order to get the size of a file and then post it to a GoogleDoc. The problem is that I am getting negative values from FileInfo.Length.... I have looked around online for some solutions and can't find any other…
Mizmor
  • 1,391
  • 6
  • 21
  • 43
0
votes
2 answers

Why is FileInfo showing an extra file extension?

I have been having problems with creating a download list of files for a downloader and was getting unexplained "File Does Not Exist" returns. My .avi files were returning found but but .exe and .txt files were getting the not exists. I have now…
James
  • 305
  • 4
  • 10
  • 23