Skip to content

Instantly share code, notes, and snippets.

@erogol
Created September 3, 2013 13:56
Show Gist options
  • Save erogol/6424295 to your computer and use it in GitHub Desktop.
Save erogol/6424295 to your computer and use it in GitHub Desktop.
function[ROOT_DIR] = read_dir(PATH)
ROOT_DIR = dir(PATH);
% video_names = ls(fullfile(PATH,'*.mp4'));
file_names = {ROOT_DIR.name};
ROOT_DIR = ROOT_DIR(~ismember(file_names,{'.','..'}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment