Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 06-17-2017, 03:58 PM   #1
cfillion
Human being with feelings
 
Join Date: May 2015
Location: Québec, Canada
Posts: 1,147
Default [API] RecursiveCreateDirectory return value differs depending on OS (Fixed)

On macOS and Linux, RecursiveCreateDirectory returns 0 on success and -1 on error but on Windows it returns 1 on success and 0 on error. This makes it harder to check whether it actually succeeded.

EDIT: Fixed in v5.50rc3, thanks!

Last edited by cfillion; 06-22-2017 at 01:40 PM.
cfillion is online now   Reply With Quote
Old 06-17-2017, 05:39 PM   #2
cfillion
Human being with feelings
 
Join Date: May 2015
Location: Québec, Canada
Posts: 1,147
Default

Another OS inconsistency: file_exists cannot be used on directories on Windows but can on macOS/Linux.
cfillion is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:28 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.