Help with filesystem [SOLVED]

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
zalander
Citizen
Posts: 73
Joined: Mon Jan 09, 2023 5:58 am
Location: India

Help with filesystem [SOLVED]

Post by zalander »

Hi there,
I wanted to ask that how can i change the filesystem destination
Like i want to save a sting in C:\<name>\OneDrive\Desktop\folder
so how can i do it ?
:nyu:
Last edited by zalander on Tue Jun 13, 2023 7:40 am, edited 1 time in total.
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: Help with filesystem

Post by Andlac028 »

Either use lua io module (io.read, io.write, io.open, however this can break os compatibility), or try to bypass loves filesystem restrictions with ffi (there is some library for it, but I forgot its name), or wait for 12.0 (or use development version), which includes new filesystem functions for mounting any directory
User avatar
zorg
Party member
Posts: 3449
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Help with filesystem

Post by zorg »

You shouldn't do that in the first place anyway.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
zalander
Citizen
Posts: 73
Joined: Mon Jan 09, 2023 5:58 am
Location: India

Re: Help with filesystem

Post by zalander »

Welp guess im waiting for 12.0
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests