Question
System command issue in an After Effects script - can't retrieve clean folder content
I get strange results when using this kind of code in an After Effects script:
my_path = "Users/abc/def";
my_files = system.callSystem("cd " + my_path + " ; ls");
I then want to retrieve elements one by one, in an Array, but it seems that odd characters get in the way, and "hidden" items like indexes. I can get for instance 9 elements instead of 2.
I can get sth like this:
/bin/sh:,line,1:,2:,command,not,found,picture1.dng,movie1.mp4
What should I do to retrieve a clean list, which would only contain the folder items:
picture1.dng,movie1.mp4
