Anyone have the correct syntax to remove a directory…?
Posted: Thu Nov 21, 2013 8:04 pm
Hello all
I'm trying to find the right syntax to remove a directory using the rmdir option in the Utility>Dir class. I've tried every possible syntax variation I can think of and cannot get this option to work.
This is the error I receive:
Error in line 76 of script : TypeError. 'rmdir' undefined or not a function
I've tried:
Dir.rmdir(variableName);
rmdir(variableName);
variableName.rmdir();
Dir.variableName.rmdir();
Can anyone point me in the right direction on this?
Thanks.
William Buckingham
I'm trying to find the right syntax to remove a directory using the rmdir option in the Utility>Dir class. I've tried every possible syntax variation I can think of and cannot get this option to work.
This is the error I receive:
Error in line 76 of script : TypeError. 'rmdir' undefined or not a function
I've tried:
Dir.rmdir(variableName);
rmdir(variableName);
variableName.rmdir();
Dir.variableName.rmdir();
Can anyone point me in the right direction on this?
Thanks.
William Buckingham