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
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
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 devs!

Last edited by cfillion; 06-27-2017 at 03:21 PM.
cfillion is offline   Reply With Quote
Old 06-17-2017, 05:39 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Another OS inconsistency: file_exists cannot be used on directories on Windows but can on macOS/Linux.
cfillion is offline   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 04:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.