Closed (won't fix)
Project:
Drupal core
Version:
8.6.x-dev
Component:
file system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Jul 2011 at 22:00 UTC
Updated:
10 Jun 2019 at 23:14 UTC
Jump to comment: Most recent
Comments
Comment #1
marcingy commentedMoving to d8 as we deal with issue in head first and although a wtf nothing is actually broken so marking as a task.
Comment #8
alexpottI think
file_copy()is badly named - it is an operation on a File object andfile_unmanaged_copy()is an operation on the file as it is on disk not a Drupal entity so there's never really a time when these two can be the same thing. In D8 HEADfile_unmanaged_copy()has been deprecated in favour of\Drupal\Core\File\FileSystemInterface::copy(). Now that the two methods are not sitting next to each other the issue is less prominent and doesn't stick out. Hopefully eventually efforts like #2229865: [meta] Modernize File/StreamWrapper API will lead to file_copy(), file_move() etc will become part of the File entity or a service for managing File entities.