cancel
Showing results for 
Search instead for 
Did you mean: 

The slash /

Former Member
0 Kudos

Hi Experts,

I am just wondering what is the difference between these two paths below, one with / at the end, one without:

/interface/archive/

and

/interface/archive


Thanks

Blue

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I feel it really dont matter in PI.

but in the system level - unix, linux or windows the trailing "/" will matters..

/interface/archive/ - / at the end will look like folder.

/interface/archive - no slash system may consider as filename without any extension..



Former Member
0 Kudos

Thank you Ramkumar!

I will add / at the end then, to be safe.

Blue

engswee
Active Contributor
0 Kudos

Just to add on.

I have actually experienced that the slash matters in PI. I can't remember whether it was the NFS, FTP or SFTP adapter. Without the slash, it treated the "supposed" directory as a file name.

So if it's a directory, it's always best to have the trailing slash.

former_member186851
Active Contributor
0 Kudos

Hello Blue,

To add more.

Its same like your windows directory path. Below is the example in Windows

C:\extensions\-------------this means the folder path ends here. And the file name continues.

the same Follows in PI file path as Engg suggested the / means the directory ends and the file name begins.

Answers (0)