tracker issue : CF-3038004

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 76183:(Watson Migration Closure)I was kind of surprised to find that cfdirectory doesn't support direct copying

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): David McGuigan / David McGuigan (David McGuigan)

Created: 03/25/2009

Components: File Management, CFDirectory

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 4

Problem:

I was kind of surprised to find that cfdirectory doesn't support direct copying.

Thought it's relatively simple to query a directory and copy the files manually... 

This feels like it's missing:

<!--- Duplicate a directory and its contents --->
<cfdirectory 
    action = "copy"
    directory = "x:\media\"
    newDirectory = "z:\backups\media\" />


Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3038004

External Customer Info:
External Company:  
External Customer Name: David McGuigan
External Customer Email: 5E0D54C04462BF5E992016B6
External Test Config: 03/25/2009

Attachments:

Comments:

+1 vote. it does seem like a bit of an obvious omission.
Vote by External U.
23831 | November 10, 2011 07:18:11 PM GMT
+1 A number of our applications have lots of extra code to do this exact thing and this would be so wonderful and would help us streamline the process of copying directories where needed...right now it's a mess and feels awkward.
Vote by External U.
23832 | November 10, 2011 07:18:11 PM GMT
What a timesaver this would be - would need to include a RECURSEDIRECTORIES option to be really useful however.
Vote by External U.
23833 | November 10, 2011 07:18:12 PM GMT
+1. Copying a directory should be done with cfdirectory, not cffile.
Vote by External U.
23834 | November 10, 2011 07:18:13 PM GMT
This is fixed in CF 10 and later versions, Here is the syntax of usage : ----------------------------------------------- <cfdirectory action = "copy" directory = "C:\Bugs\" destination = "C:\NewBugs" recurse="true"/>
Comment by HariKrishna K.
23830 | December 17, 2014 06:13:04 AM GMT