Problem 1866. Usage of mkdir and copyfile

This Challenge is to copy a file into a new directory multiple levels below existing directory architecture.

System appears to be unix and thus use '/' versus '\' which is for windows.

Typical starting folder is /users/msssystem19. The file will be copied to /users/msssystem19/level/files.

Input: [sub_folder_path, filetocopy] File to copy is in current folder

Output: None but file must be copied to defined sub_folder location

Solution Stats

31.43% Correct | 68.57% Incorrect
Last solution submitted on May 08, 2015
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!