On Wed, July 15, 2009 1:44 am, Matt Wozniski wrote:
>
> On Tue, Jul 14, 2009 at 10:12 AM, Ben Fritz wrote:
>> That being said...does
>> Vim's mkdir() return a status indicating success/fail? If not, the
>> script would need to find a new way to determine that.
>
> No, but the script can determine that with getftype().

Well, I can only speak for Windows and Linux but there mkdir returns a
status.  Actually it returns an error, if it could not create the
directory.

#v+
:let a=mkdir('C:\Documents and Settings\bar')
E739: Cannot create directory: C:\Documents and Settings\bar
:echo a
0
:let a=mkdir('C:\temp\bar')
:echo a
1
:version
VIM - Vi IMproved 7.1 (2007 May 12, compiled May 12 2007 14:17:41)
MS-Windows 32 bit GUI version
[…]
#v-

regards,
Christian



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to