Represenation of Path

Purpose of Document



This document explains paths for EDI or file manipulation in EnterpriseOne.

The audience for this note is someone with developer level knowledge.

Representation of path name and file name:

Operating
Systems
Directory
Separator
Starts
with
Example Other Note
Windows '\' \\ \\ServerName\FolderName\FileName \\ to indicate machine name
Windows (Local) '\' A:\ to Z:\ D:\FolderName\SubfolderName\FileName A to Z standards for Drive Name
Unix '/' / /ParentDirectory(/ChildDirectory)/FileName The first / indicates root
Linux '/' / /ParentDirectory(/ChildDirectory)/FileName The first / indicates root
AS400 '/' / /ParentDirectory(/ChildDirectory)/FileName The first / indicates root
File has to be sitting in IFS

Note:

What is a path?

A path is the general form of a file or directory name, giving a file's name and its unique location in a file system. Paths point to their location using a string of characters signifying directories, separated by a delimiting character, most commonly the slash "/" or backslash character "\", though some operating systems may use a different delimiter. Paths are used extensively in computer science to represent the directory/file relationships common in modern operating systems, and are essential in the construction of Uniform Resource Locators (URLs).

A path can be either absolute or relative.


What is UNC in Windows operating system?

UNC stands for Universal Naming Convention or Uniform Naming Convention generally used in Windows operating system(namely, IBM PC networking). In industry, representations of paths by operating system is,
\\ServerComputerName\ShareName

Note:

Path Name and File Name rules in Unix

Refer to the user manual for your vendor for your Unix and Linux operating system (source: Unix for Dummies by John R. Levine, Margaret Levine Young)

UNIX is not alone in being overparticular about creating and finding filenames and pathnames. Keep the following tips in mind as you create and search through UNIX files:

Note: Directory Paths in Linux follows Unix Path Name and File Name Rules refer http://www.linux-tutorial.info/modules.php?name=MContent&pageid=17


Path name rule for APIs in AS400

(Source: http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/ifs/rzaaxcmdpath.htm)

When using an integrated file system to operate on an object, you identify the object by supplying its directory path. Following is a summary of rules to keep in mind when specifying path names in the APIs. The term object in these rules refers to any directory, file, link, or other object.


Note:

Encoding for path?

Currently API jdeFopen() can be used across system in dealing with flat file from multiple locations. If the tools release you are on is lower than 8.98.3.4 double byte folder name or file name may not be recognized.

For detail refer to <Bug 11048789> : FILE NAMES WITH CHINESE CHARAC - SAR: 8968744
Modified jdeFopen so that it will support file names that include any UTF-16 (JCHAR *) characters.
The actual file names must be supported by the underlying operating systems and file systems.


Summary:

When a certain file is in shared area in your network files can be accessed/manipulated through jdeFopen(), jdeFclose() and conversion purpose. So it is important to check based on the operating system which govern those files,