Questions tagged [cfdirectory]

30 questions
5
votes
5 answers

Is it possible somehow to exclude files with cfdirectory?

When using cfdirectory, how could I exclude all cfm files and list all others without specifying the file extensions for all files I want to see, or exclude a specific file like index.html without doing a query of query? I'm looking for something…
Jayson
  • 2,021
  • 3
  • 25
  • 26
3
votes
4 answers

CFdirectory with Coldfusion 11, issue with non ascii characters in filenames

I have a similar question to this: ColdFusion, CFDirectory and the French which was not given a satisfactory answer. We have upgraded from Coldfusion 9 to Coldfusion 11. So far no major problems except the following: When using CFdirectory to…
user1201723
  • 115
  • 2
  • 8
3
votes
3 answers

ColdFusion, CFDirectory and the French

We have a ColdFusion file library management system that is being taken off an old ColdFusion 4 server and moved onto the new system which is based on ColdFusion 8. All our files and folders are in English, French and Spanish. Using CFDirectory in…
Andy Long
  • 706
  • 5
  • 15
3
votes
5 answers

ColdFusion DirectoryList () - is it possible to get only directories?

I've used to get only directories, but I need to do this inside a UDF written in cfscript, so I need to use DirectoryList(). It appears that I need to get everything and then visit the result filtering directories manually. However,…
Redtopia
  • 4,947
  • 7
  • 45
  • 68
2
votes
3 answers

cfdirectory output different html based on filter

I want to spit out slightly different html based on a filter condition passed to cfdirectory. Here is my cfml:
lharby
  • 3,057
  • 5
  • 24
  • 56
2
votes
1 answer
2
votes
3 answers

group cfdirectory by dateLastModified (date not time)

I am running ColdFusion 9 and Oracle database. I am trying to group all files from a directory by the dateLastModified using:
rob
  • 715
  • 2
  • 6
  • 20
2
votes
5 answers

cfdirectory on a ColdFusion Mapping

I am trying to use CFDirectory to get a file listing of a mapping created in ColdFusion Admin. So far I cannot get the list to populate, but if I reference the physical path the full file list is displayed. Here's the code I'm…
JonCav
  • 167
  • 7
2
votes
1 answer

CFDIRECTORY blocked by hosting provider. Any alternatives?

I am working on an intranet enhancement that will allow the user to open the latest instance(most recently modified or created) of a file within a given directory. Unfortunately, the cfdirectory tag (and a few others) are blocked by the hosting…
user1178394
  • 83
  • 1
  • 8
1
vote
1 answer

Use cfdirectory to find unmatched files in two directories and perform function

In my application the user uploads a photos and the cfc resizes the photo, creates a new image and resizes that new image to a thumbnail. Trouble is, this function wasn't available earlier on in the game. I want to now look at the images directory…
Ofeargall
  • 5,340
  • 5
  • 28
  • 33
1
vote
1 answer

Pass a Directory Query to ?

I need to zip files from a directory, but not all the files in the directory. I determine the files that need to be zipped by running a query on the directory listing. Currently, I'm looping over the query results to add each file to the archive…
Sean Walsh
  • 8,266
  • 3
  • 30
  • 38
1
vote
2 answers

ColdFusion - Need to loop through a folder to find specific files from a SQL query and copy or zip them to a temp folder

I'm trying to loop through a folder on a server to get a list of specific files and then have those files copied to a temp directory or zipped and copied to a temp directory. However I keep running into wall as I'm not sure how to do this. (Still an…
Subah
  • 45
  • 9
1
vote
2 answers

cfdirectory loop limit the results

I' am finding it difficult to understand this. How can I limit the results to 50 only. Let say if in the directory I have 1000 files, how can I limit it so that only 50 files are looped over.
Devil Raily
  • 562
  • 1
  • 5
  • 15
1
vote
1 answer

directoryExists evaluates to true and lists contents, but cannot find directory

I have some code that uploads a video to the server, but first checks that the upload directory exists and creates it if not.
user460114
  • 1,848
  • 3
  • 31
  • 54
1
vote
4 answers

uploading files to a newly created directory in Coldfusion

I'm having trouble using cffile right before I create a directory. I am using the cffileupload tag and my url attribute is a page that has the following code. Basically the code below creates a new directory and uploads all the images to that…
Animal Rights
  • 9,107
  • 6
  • 28
  • 40
1
2