Files and folders functions

The File and Folder Functions module provides tools for managing files, directories, and paths in Nelson.

This module supports navigation of the file system, creation and removal of files and directories, querying file and folder properties, building and resolving paths, and handling platform-specific separators.

This module enables efficient and cross-platform file system operations within Nelson scripts and applications.

Functions

  • cd - Changes Nelson current directory.

  • copyfile - Copy files or folder.

  • diff_file - diff two files or strings.

  • dir - Returns file list.

  • fileparts - Returns the path, filename and extension of a file path.

  • filesep - Return the file separator character for the current platform.

  • fullfile - Build full file name from parts.

  • fullpath - Returns canonical full path.

  • isdir - Returns true is the input argument is an directory.

  • isfile - Returns true is the input argument is a file.

  • isfolder - Returns true is the input argument is an directory.

  • ls - List folder contents.

  • mkdir - Creates a new directory.

  • pathsep - Return the search path separator character for the current platform.

  • pwd - Returns current directory.

  • relativepath - Returns the relative path from an actual path to the target path.

  • rmdir - Removes a directory.

  • rmfile - Removes a file.

  • tempdir - Returns the temporary directory path.

  • tempname - Returns an unique temporary filename.

  • userdir - Returns the current user's path.

Last updated

Was this helpful?