unexpected folder structure #1425

treat objects as non existing when outside the starting folder
This commit is contained in:
larshp 2018-06-19 08:16:55 +02:00
parent 145a82e9ef
commit fa94fa8ea1

View File

@ -27,7 +27,7 @@ ENDCLASS.
CLASS zcl_abapgit_folder_logic IMPLEMENTATION.
CLASS ZCL_ABAPGIT_FOLDER_LOGIC IMPLEMENTATION.
METHOD package_to_path.
@ -109,7 +109,8 @@ CLASS zcl_abapgit_folder_logic IMPLEMENTATION.
lv_length = strlen( io_dot->get_starting_folder( ) ).
IF lv_length > strlen( iv_path ).
zcx_abapgit_exception=>raise( 'unexpected folder structure' ).
* treat as not existing locally
RETURN.
ENDIF.
lv_path = iv_path+lv_length.
lv_parent = lv_top.