get_path_info
Analyze file paths to determine if they are absolute or relative, resolve symlinks, check file existence and accessibility, and validate path safety for CSV operations.
Instructions
Get detailed information about a file path, supporting both relative and absolute paths.
Args:
filepath: The file path to analyze (can be relative or absolute)
Returns:
Dictionary with comprehensive path information including:
- Whether the path is absolute or relative
- Resolved path (following symlinks)
- Parent directory information
- File existence and accessibility
- Safety validation for absolute paths
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filepath | Yes |
Input Schema (JSON Schema)
{
"properties": {
"filepath": {
"title": "Filepath",
"type": "string"
}
},
"required": [
"filepath"
],
"type": "object"
}