Showing posts with label getFileList. Show all posts
Showing posts with label getFileList. Show all posts
12/15/08
8/9/08
How to fix getFileList
When you use the MEL command getFileList, make sure there is a trailing "/" on the folder string you pass to it. Otherwise the command returns the folder string you passed to it initially.
string $imageDir = (dirname (`fileDialog`) + "/"); // Stroke must be added
string $fileList[] = `getFileList -folder $imageDir`;
This was a frustrating bug and hopefully this will show up in search results when someone else has this issue.
string $imageDir = (dirname (`fileDialog`) + "/"); // Stroke must be added
string $fileList[] = `getFileList -folder $imageDir`;
This was a frustrating bug and hopefully this will show up in search results when someone else has this issue.
Subscribe to:
Posts (Atom)