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

Problem 1866. Usage of mkdir and copyfile

Created by Richard Zapor

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


Problem Group

Solution Statistics

9 correct solutions 22 incorrect solutions
Last solution submitted on Dec 04, 2014