Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
file system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2014 at 09:20 UTC
Updated:
29 Jul 2014 at 23:21 UTC
Jump to comment: Most recent
Comments
Comment #2
benjy commentedBack to NR
Comment #3
moshe weitzman commentedThx for the new test.
Comment #4
alexpottSo I'm not sure if this is actually a bug. If I copy a file on the command line to a non existent directory I get an error message. At the very least we should replicate the bit mask on file_prepare_directory to file_unmanaged_copy. That way the caller could decide whether or not they consider the fact that the destination needs to be created as a bug or not.
Comment #5
benjy commentedDiscussed with @alexpott on IRC and it was decided that copy shouldn't create the directory structure much like UNIX
cp.