Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 770 Bytes

File metadata and controls

25 lines (15 loc) · 770 Bytes

Get file name without extension

Get file name without extension

Overview

Gets file name without extension from a given file. Given a file path, extracts and returns only the base name portion of the filename, stripping both the directory path and the extension.

Parameters

1. filePath (FILE)

  • Label: File
  • Description: The file path from which to extract the file name without extension.
  • Required: Yes
  • Default: None
  • Constraints: None

Output

Returns a STRING containing the file name without its extension, extracted from the given file path.

Exceptions

Throws BotCommandException on invalid input or internal failure.