User contributions for Danilo

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

19 January 2022

  • 03:2703:27, 19 January 2022 diff hist +1,429 N Modules/FileSystem/file/readCreated page with "__NOTOC__ This function attempts to read the specified amount of bytes from the file. The actual amount of bytes read equals to the length of the Lua string. ==Syntax== <syntaxhighlight lang="lua"> string file:read ( int readCount ) </syntaxhighlight> ==Arguments== *'''readCount:''' the amount of bytes to read from the file ==Returns== This function returns a string that contains the bytes that have been read from the file. ==Example== <section name="Client" class="c..."
  • 03:2303:23, 19 January 2022 diff hist 0 Modules/FileSystemNo edit summary
  • 03:2203:22, 19 January 2022 diff hist −1 Modules/FileSystem/functionsNo edit summary
  • 03:1903:19, 19 January 2022 diff hist +1,221 N Modules/FileSystem/translator/functionsCreated page with "==FileSystem Translator Functions== *open *exists *createDir *chdir *delete *copy *rename *size *Modules/FileSystem/translator..."
  • 03:1103:11, 19 January 2022 diff hist +262 N Modules/FileSystem/functionsCreated page with "==FileSystem Library Functions== *createFilesystemInterface {{:Modules/FileSystem/namespace/functions}} {{:Modules/FileSystem/translator/functions}} {{:Modules/FileSystem/file/functions}}"
  • 03:0903:09, 19 January 2022 diff hist +61 MTA:Eir/FileSystem/functionsUndo revision 73642 by Danilo (talk) current Tag: Undo
  • 03:0803:08, 19 January 2022 diff hist −61 MTA:Eir/FileSystem/functions→‎FileSystem Library Functions
  • 03:0403:04, 19 January 2022 diff hist +470 N Modules/FileSystem/translator/getPathProcessingModeCreated page with "__NOTOC__ This function gets the path-processing-mode for the given file translator. ==Syntax== <syntaxhighlight lang="lua"> string translator:getPathProcessingMode () </syntaxhighlight> ==Returns== This function returns a string describing the current path-processing-mode of the translator. ===Possible Return Values=== *distinguished *ambivalent_file ==Example== <syntaxhighlight lang="lua"> -- TODO </syntaxhighlight> {{:Modules/FileSystem/translator/functions}}"
  • 03:0403:04, 19 January 2022 diff hist +583 N Modules/FileSystem/translator/setPathProcessingModeCreated page with "__NOTOC__ This function sets the path-processing-mode for the file translator. The path-processing-mode describes how paths are handled in detail during file-path consuming function calls. ==Syntax== <syntaxhighlight lang="lua"> void translator:setPathProcessingMode( string mode ) </syntaxhighlight> ==Arguments== *'''mode:''' value for the translator path-processing-mode (either '''distinguished''' or '''ambivalent_file''') ==Returns== This function returns nil. ==Ex..."
  • 03:0303:03, 19 January 2022 diff hist +589 N Modules/FileSystem/translator/getOutbreakEnabledCreated page with "__NOTOC__ This function gets the outbreak-policy of a file translator. If outbreak is enabled then file path requests outside of the translator root are allowed. Otherwise the user can only access files that are accessible from inside the translator root directory. ==Syntax== <syntaxhighlight lang="lua"> bool translator:setOutbreakEnabled () </syntaxhighlight> ==Returns== This function returns true if the outbreak-policy is enabled for this translator, false otherwise...."
  • 03:0203:02, 19 January 2022 diff hist +603 N Modules/FileSystem/translator/setOutbreakEnabledCreated page with "__NOTOC__ This function sets the outbreak-policy of a file translator. If outbreak is enabled then file path requests outside of the translator root are allowed. Otherwise the user can only access files that are accessible from inside the translator root directory. ==Syntax== <syntaxhighlight lang="lua"> void translator:setOutbreakEnabled ( bool enabled ) </syntaxhighlight> ==Arguments== *'''enabled:''' value for the translator outbreak-policy ==Returns== This functio..."
  • 03:0203:02, 19 January 2022 diff hist +1,762 N Modules/FileSystem/translator/getFilesCreated page with "__NOTOC__ This function returns a list of all files that are found under the wild-card and directory parameters. It is similar to scanDir but returns files only. ==Syntax== <syntaxhighlight lang="lua"> table translator:getFiles ( string dirPath, string wildcard, bool recursive ) </syntaxhighlight> ==Arguments== *'''dirPath:''' a path to the directory the scan shall take place or start in *'''wildcard:''' glob-style wild-card fo..."
  • 03:0103:01, 19 January 2022 diff hist +1,626 N Modules/FileSystem/translator/getDirsCreated page with "__NOTOC__ This function returns a list of all directories that are found under the directory path. It is similar to scanDir but returns directories only. ==Syntax== <syntaxhighlight lang="lua"> table translator:getDirs ( string dirPath, bool recursive ) </syntaxhighlight> ==Arguments== *'''dirPath:''' a path to the directory the scan shall take place or start in *'''recursive:''' a boolean that specifies whether the whole direc..."
  • 03:0003:00, 19 January 2022 diff hist +3,387 N Modules/FileSystem/translator/scanDirExCreated page with "__NOTOC__ This function loops through all translator filesystem entries that are captured by the wildcard and the directory specifier. The wildcard is glob-style and supports '''*''' and '''?''' modifiers. The scan can be made recursive to enter every directory it finds, so that files and folders of a whole directory tree are captured. This function is used to process filesystem objects inside of directories without having to add the filenames into a configuration file...."
  • 02:5902:59, 19 January 2022 diff hist +2,914 N Modules/FileSystem/translator/scanDirCreated page with "__NOTOC__ This function loops through all translator filesystem entries that are captured by the wildcard and the directory specifier. The wildcard is glob-style and supports '''*''' and '''?''' modifiers. The scan can be made recursive to enter every directory it finds, so that files and folders of a whole directory tree are captured. This function is used to process filesystem objects inside of directories without having to add the filenames into a configuration file...."
  • 02:5802:58, 19 January 2022 diff hist +1,410 N Modules/FileSystem/translator/absPathRootCreated page with "__NOTOC__ This function resolves a specified path into its absolute version. The path is resolved from the translator root. This function can be used to get a unique version of a path (without scripting symbols such as '..'). ==Syntax== <syntaxhighlight lang="lua"> string translator:absPathRoot ( string path ) </syntaxhighlight> ==Arguments== *'''path:''' the path that should be resolved into an absolute path; can be nil to return the absolute location of the translato..."
  • 02:5702:57, 19 January 2022 diff hist +1,053 N Modules/FileSystem/translator/absPathCreated page with "__NOTOC__ This function resolves a specified path into its absolute version. This function can be used to get a unique version of a path (without scripting symbols such as '..'). ==Syntax== <syntaxhighlight lang="lua"> string translator:absPath ( string path ) </syntaxhighlight> ==Arguments== *'''path:''' the path that should be resolved into an absolute path; can be nil to return the absolute location of the current directory. ==Returns== This function returns the ab..."
  • 02:5702:57, 19 January 2022 diff hist +1,488 N Modules/FileSystem/translator/relPathRootCreated page with "__NOTOC__ This function transform a path that is passed to it into a path that is relative to the translators root directory. The path must be accessible from the translator. The path can either be absolute or relative. ==Syntax== <syntaxhighlight lang="lua"> string translator:relPathRoot ( string path ) </syntaxhighlight> ==Arguments== *'''path:''' the path that should be transformed into a relative path; can be nil to return the '''null path''' ==Returns== This func..."
  • 02:5602:56, 19 January 2022 diff hist +1,252 N Modules/FileSystem/translator/relPathCreated page with "__NOTOC__ This function transform a path that is passed to it into a path that is relative to the translators current directory. The path must be accessible from the translator. The path can either be absolute or relative. ==Syntax== <syntaxhighlight lang="lua"> string translator:relPath ( string path ) </syntaxhighlight> ==Arguments== *'''path:''' the path that should be transformed into a relative path; can be nil if the current directory should be returned ==Return..."
  • 02:5502:55, 19 January 2022 diff hist +1,434 N Modules/FileSystem/translator/statCreated page with "__NOTOC__ This function queries common information about a filesystem object and returns it as a dictionary. Example of its return value: <syntaxhighlight lang="lua"> { accessTime = 1390997951, -- OS specific time information creationTime = 1381999749, -- OS specific time information modTime = 1381872826, -- OS specific time information size = 1441280, -- size of the filesystem object in bytes }; </syntaxhighlight> ==Syntax== <syntaxhighlight lang="lua">..."
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)