HB_DirSepDel

HB_DirSepDel

Delete dir separator at end of a path if exists

Syntax

      HB_DirSepDel( <cPath1> ) -> <cPath2>

Argument

<cPath1> : A path either include or not a dir separator at end

Returns

<cPath2> : Absent dir separator at end version of <cPath1>

Description

In paths, “dir separator” is a ‘\’ ( back slash ) for DOS / Windows and a “/” ( slash )for U*nix systems

HB_DirSepAdd() is a function to delete dir separator to end of a path if it’s exist

Example

      LOCAL cDir := 'C:\temp\TestSeps\'
      ? HB_DirSepDel( cDir )  // C:\temp\TestSeps

Seealso

HB_PathNormalize(), HB_DirSepAdd(), HB_DirSepToOS(), TrueName()

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s