Hierarchy
⤷
⤷
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_FS_UNIX_PATH | A UNIX File System Path | 20100909 |
| 2 | Inheritance (c INHERITING FROM c_ref) | CL_FS_WINDOWS_PATH | A WINDOWS File System Path | 20100909 |
Properties
| Class | CL_FS_PATH | |
| Short Description | File System Paths | |
| Super Class | ||
| Instantiability of a Class | 1 | Protected |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SABP_FILE | File Handling |
| Created | 20100812 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_FS_PATH has no interface implemented.
Friends
Class CL_FS_PATH has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Protected | Type reference (TYPE) | STRING_TABLE | Table of path components | 20100909 | |||
| 2 | Instance attribute | Protected | Type reference (TYPE) | CHAR1 | Drive letter | 20100909 | |||
| 3 | Instance attribute | Protected | Type reference (TYPE) | STRING | Hostname for UNC paths | 20100909 | |||
| 4 | Instance attribute | Protected | Type reference (TYPE) | ABAP_BOOL | Is path absolute? | 20100909 | |||
| 5 | Static Attribute | Public | Type reference (TYPE) | STRING | Separator(s) for Parsing | 20100909 | |||
| 6 | Instance attribute | Public | Type reference (TYPE) | PATH_KIND_T | Values see above | 20100909 | |||
| 7 | Constant | Public | Type reference (TYPE) | PATH_KIND_T | 'S' | Be smart about the path | 20100909 | ||
| 8 | Constant | Public | Type reference (TYPE) | PATH_KIND_T | 'U' | Path is a Unix path | 20100909 | ||
| 9 | Constant | Public | Type reference (TYPE) | PATH_KIND_T | 'W' | Path is a Windows path | 20100909 | ||
| 10 | Static Attribute | Public | Type reference (TYPE) | CHAR1 | Separator for Rendering | 20100909 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Append a relative path to the current path object | 20100909 | |
| 2 | Instance method | Public | Method | Append a relative path by name | 20100909 | |
| 3 | Static method | Public | Constructor | 20100909 | ||
| 4 | Instance method | Public | Constructor | 20100909 | ||
| 5 | Instance method | Public | Method | Return a copy of the current path object | 20100909 | |
| 6 | Static method | Public | Method | Factory method for a platform specific path object | 20100909 | |
| 7 | Static method | Public | Method | 20100909 | ||
| 8 | Static method | Public | Method | Factory method for a path object working on all platforms | 20100909 | |
| 9 | Static method | Public | Method | Get the current working directory | 20100909 | |
| 10 | Instance method | Public | Method | Get the drive letter of a Windows path | 20100909 | |
| 11 | Instance method | Public | Method | Get the base name without extension from the file name part | 20100909 | |
| 12 | Instance method | Public | Method | Get the file name extension | 20100909 | |
| 13 | Instance method | Public | Method | Get the file name part of the path | 20100909 | |
| 14 | Instance method | Public | Method | Get the host name of a UNC path | 20100909 | |
| 15 | Instance method | Public | Method | Get the path component of the path (w/o file name part) | 20100909 | |
| 16 | Instance method | Public | Method | Get a string representation of the path | 20100909 | |
| 17 | Instance method | Public | Method | Go n levels up in the path hierarchy | 20100909 | |
| 18 | Instance method | Public | Method | Has the path a drive letter? | 20100909 | |
| 19 | Instance method | Public | Method | Is the path an absolute path? | 20100909 | |
| 20 | Instance method | Public | Method | Is the path empty (e.g. / or .) | 20100909 | |
| 21 | Instance method | Public | Method | Are two paths equal? | 20100909 | |
| 22 | Instance method | Public | Method | Is the path a relative path? | 20100909 | |
| 23 | Instance method | Public | Method | Is current path subpath of the other | 20100909 | |
| 24 | Instance method | Public | Method | Is the path a UNC path? | 20100909 | |
| 25 | Static method | Private | Method | Kernel Method to get cwd | 20101104 | |
| 26 | Static method | Private | Method | Kernel Normalization | 20101104 | |
| 27 | Instance method | Public | Method | Make path an absolute path (w. respect to a reference) | 20100909 | |
| 28 | Instance method | Public | Method | Make path a relative path (w. respect to a reference) | 20100909 | |
| 29 | Instance method | Protected | Method | Normalize the path object, e.g. remove unnecessary component | 20100909 | |
| 30 | Instance method | Protected | Method | Parse a path name | 20100909 | |
| 31 | Static method | Public | Method | Get path kind from op sys value | 20101104 | |
| 32 | Instance method | Private | Method | Prepare current path and other path for comparison | 20100909 | |
| 33 | Instance method | Private | Method | Substitute profile parameters in path | 20100909 |
Events
Class CL_FS_PATH has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | PATH_KIND_T | Public | See coding | 20100909 | path_kind_t type c length 1
|
Method Signatures
Method APPEND_PATH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PATH | Call by reference | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method APPEND_PATH_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | NAME | Call by reference | Type reference (TYPE) | CLIKE | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 | |||
| 2 | 20100909 |
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_FS_PATH has no parameter.
Method CLASS_CONSTRUCTOR on class CL_FS_PATH has no exception.
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class CL_FS_PATH has no parameter.
Method CONSTRUCTOR on class CL_FS_PATH has no exception.
Method COPY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 |
Method COPY on class CL_FS_PATH has no exception.
Method CREATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FORCE_ABSOLUTE | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20100909 | |||
| 2 | NAME | Value transfer | Type reference (TYPE) | CLIKE | 20100909 | ||||
| 3 | PATH_KIND | Value transfer | Type reference (TYPE) | PATH_KIND_T | ' ' | 20100909 | |||
| 4 | RESULT | Value transfer | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method CREATE_FROM_LOGICAL_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | NAME | Value transfer | Type reference (TYPE) | CLIKE | 20100909 | ||||
| 2 | PATH_KIND | Value transfer | Type reference (TYPE) | PATH_KIND_T | ' ' | 20100909 | |||
| 3 | RESULT | Value transfer | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method CREATE_SMART_PATH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FORCE_ABSOLUTE | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20100909 | |||
| 2 | NAME | Value transfer | Type reference (TYPE) | CLIKE | 20100909 | ||||
| 3 | RESULT | Value transfer | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method GET_CURRENT_WORKING_DIR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DRIVE_LETTER | Value transfer | Type reference (TYPE) | C | ' ' | 20100909 | |||
| 2 | PATH_KIND | Value transfer | Type reference (TYPE) | PATH_KIND_T | ' ' | 20100909 | |||
| 3 | RESULT | Value transfer | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method GET_DRIVE_LETTER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | CHAR1 | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method GET_FILE_BASE_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | STRING | 20100909 |
Method GET_FILE_BASE_NAME on class CL_FS_PATH has no exception.
Method GET_FILE_EXTENSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | STRING | 20100909 |
Method GET_FILE_EXTENSION on class CL_FS_PATH has no exception.
Method GET_FILE_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | STRING | 20100909 |
Method GET_FILE_NAME on class CL_FS_PATH has no exception.
Method GET_HOSTNAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | STRING | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method GET_PATH_COMPONENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | STRING | 20100909 |
Method GET_PATH_COMPONENT on class CL_FS_PATH has no exception.
Method GET_PATH_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EMPTY_AS_DOT | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20100909 | |||
| 2 | RESULT | Value transfer | Type reference (TYPE) | STRING | 20100909 |
Method GET_PATH_NAME on class CL_FS_PATH has no exception.
Method GO_UP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LEVELS | Call by reference | Type reference (TYPE) | NUMERIC | 1 | 20100909 |
Method GO_UP on class CL_FS_PATH has no exception.
Method HAS_DRIVE_LETTER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20100909 |
Method HAS_DRIVE_LETTER on class CL_FS_PATH has no exception.
Method IS_ABSOLUTE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20100909 |
Method IS_ABSOLUTE on class CL_FS_PATH has no exception.
Method IS_EMPTY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20100909 |
Method IS_EMPTY on class CL_FS_PATH has no exception.
Method IS_EQUAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PATH | Call by reference | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 | ||||
| 2 | RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 | |||
| 2 | 20100909 |
Method IS_RELATIVE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20100909 |
Method IS_RELATIVE on class CL_FS_PATH has no exception.
Method IS_SUBPATH_OF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PATH | Call by reference | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 | ||||
| 2 | RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 | |||
| 2 | 20100909 |
Method IS_UNC_PATH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20100909 |
Method IS_UNC_PATH on class CL_FS_PATH has no exception.
Method KM_GET_CWD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DRIVE | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20101104 | |||
| 2 | RESULT | Value transfer | Type reference (TYPE) | STRING | 20101104 |
Method KM_GET_CWD on class CL_FS_PATH has no exception.
Method KM_NORMALIZE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | HINT | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20101104 | |||
| 2 | PATH | Call by reference | Type reference (TYPE) | STRING | 20101104 | ||||
| 3 | RESULT | Value transfer | Type reference (TYPE) | STRING | 20101104 |
Method KM_NORMALIZE on class CL_FS_PATH has no exception.
Method MAKE_ABSOLUTE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | INHERIT_DRIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20100909 | |||
| 2 | REF_PATH | Call by reference | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 | |||
| 2 | 20100909 |
Method MAKE_RELATIVE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REF_PATH | Call by reference | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 | |||
| 2 | 20100909 |
Method NORMALIZE Signature
Method NORMALIZE on class CL_FS_PATH has no parameter.
Method NORMALIZE on class CL_FS_PATH has no exception.
Method PARSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PATH_NAME | Value transfer | Type reference (TYPE) | CLIKE | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method PATH_KIND_FROM_OPSYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | OPSYS | Value transfer | Type reference (TYPE) | SYOPSYS | Operating System of Application Server | 20101104 | |||
| 2 | RESULT | Value transfer | Type reference (TYPE) | PATH_KIND_T | Single-Character Flag | 20101104 |
Method PATH_KIND_FROM_OPSYS on class CL_FS_PATH has no exception.
Method PREPARE_FOR_COMPARISON Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | MY_CMP_STR | Call by reference | Type reference (TYPE) | STRING | 20100909 | ||||
| 2 | PATH | Call by reference | Object reference (TYPE REF TO) | CL_FS_PATH | 20100909 | ||||
| 3 | PATH_CMP_STR | Call by reference | Type reference (TYPE) | STRING | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
Method SUBSTITUTE_PARAMS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PATH_NAME | Call by reference | Type reference (TYPE) | CLIKE | 20100909 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20100909 |
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in |