GMS2 file handling on Ubuntu

tylerbertz

Member
do the file handling function [ directory_exists(), directroy_create() ..]
Work on Ubuntu?
if so were is the working_directory located?
and possable get a simple example of createing a directory "apples"

So far I have:

Create Event:
Step = 0;

Step Event:
if(Step == 0){
directory_create(working_directory+"apple");
Step = 1;
}

It works on windows but not Ubuntu
 

tylerbertz

Member
yay! for anyone who is wandering about it basicly

directory_create("//home//Username//Documents//apple");

Note: Username stands for the ubuntu account name
 

tylerbertz

Member
basically with gms2 trying to not give the programmer to much control, you need an extension.
because of sand box. I know you can disable it, but you still have to prompt the user to choose the file before you get full access to it and that simply wont due.
 

Yal

🍋 *lemon noises*
GMC Elder
  • If you don't see directory changes, print the full path you're using and verify it's correct.
  • Ubuntu (and Mac) has case-sensitive filenames, Windows doesn't.
  • Ubuntu (and Mac) uses forward slashes as path separators, Windows uses backslashes.
  • You can check the sandbox path in the project settings.
 
Top