Modules/FileSystem: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
{{Module_Info| | {{Module_Info| | ||
name = FileSystem | | name = FileSystem | | ||
version = | version = 2.0 | | ||
author = [[User:The_GTA|Martin Turski (The_GTA)]] | | author = [[User:The_GTA|Martin Turski (The_GTA)]] | | ||
module_website = [ | module_website = [http://eirfs.osdn.jp/ Here] | | ||
download_link = [https:// | download_link = [https://green-candy.osdn.jp/external/releases/fileSystem_2_0_win32.zip Win32] [https://green-candy.osdn.jp/external/releases/fileSystem_2_0_linux.zip Linux] | | ||
license = none | | license = none | | ||
written_in = C++ | | written_in = C++ | |
Revision as of 21:49, 16 January 2022
Module info | |
Name | FileSystem |
Version | 2.0 |
Author | Martin Turski (The_GTA) |
Module website | Here |
Download link | Win32 Linux |
License | none |
Written in | C++ |
Operating system | Cross-platform |
Compatible with | 1.X |
FileSystem is the MTA:Eir file management implementation exported as MTA:BLUE module. It is made for those people who are not satisfied with the standard MTA file functions. Its feature-set covers binary stream writing, directory scanning and path resolution logic. It should satisfy all needs regarding file functionality. The modules' source code is released within the MTA:Eir SVN.
Its documentation can be found here. To find coding examples, browse the individual class methods.
Installing FileSystem into your Server
- Place the fileSystem*.dll module into your MTA server modules directory
- Add the module into the mtaserver.conf module loading list (at the bottom of the file)
- Edit the acl.xml in a way that resources require admin rights to call createFilesystemInterface
System Access Possibilities
- Accessing whole system
- Listing and editing all server resources
- Modifying MTA Server configuration
Be careful how you expose the FileSystem module to your server resources!
Support
To ask questions about this module, report any bugs or just hang around in general, join #mta.recore at irc.gtanet.com
LINUX: The .so module currently has stability issues due to conflicting Lua versions. I am working on resolving these. Until then the module may crash when executing callbacks (namely scanDir or scanDirEx methods).
FileSystem Library Functions
- createFilesystemInterface (module only)
FileSystem Namespace Functions
- createTranslator
- createRAMDisk
- createMemoryFile
- createFileIterative
- createArchiveTranslator (not module)
- createZIPArchive (not module)
- copyFile
- copyStream
- copyStreamCount
- pathToFilename
- streamCompare
- topointer
- type
- setDoBufferAllRaw
- getDoBufferAllRaw
FileSystem Translator Functions
- open
- exists
- createDir
- chdir
- delete
- copy
- rename
- size
- stat
- relPath
- relPathRoot
- absPath
- absPathRoot
- scanDir
- scanDirEx
- getDirs
- getFiles
- setOutbreakEnabled
- getOutbreakEnabled
- setPathProcessingMode
- getPathProcessingMode
FileSystem Archive Translator Functions
- save (not module)