love.filesystem.openNativeFile

Available since LÖVE 12.0
It is not supported in earlier versions.


Opens a new File object outside of love.filesystem paths.

O.png This documents a function for a future version of LÖVE and may be changed before final release.  


Function

Synopsis

file, errorstr = love.filesystem.openNativeFile( filename, mode )

Arguments

string filename
The full platform-dependent path to the file.
FileMode mode
The mode to open the file in.

Returns

File file
The new File object, or nil if an error occurred.
string errorstr
The error string if an error occurred.

Notes

Unlike love.filesystem.openFile which operates on restricted love.filesystem paths, this is more similar to Lua standard io.open.

See Also

Other Languages