Copy

Navigation:  Development > Function Reference > Helpers > Utility >

Copy

Previous pageReturn to chapter overviewNext page

Copy file to another location. .

 

App::Utility()->copy(src,desc)

 

Parameter

Description

src

Source file path

des

Definition file path

 

 

See bellow example:

 

App::Utility()->copy(
  App::Config()->fileManagerDir('/logo.jpg'),
  App::Config()->baseDir('/images/logo.jpg')
);