HB_DirSepAdd

HB_DirSepAdd

Add a dir separator to end of a path when its missing

Syntax

      HB_DirSepAdd( <cPath1> ) -> <cPath2>

Argument

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

Returns

<cPath2> : Added 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 add a dir separator to end of a path when its missing

Example

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

Seealso

HB_PathNormalize(), HB_DirSepDel(), 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