Archived
PATH Reader: Add ability to retrieve Folder Name
The Directory and File Pathnames (PATH) reader in conjunction with the File Copy writer is very useful to construct or rearrange the directory hierarchy in the disk system.
The features from the PATH reader have several attributes storing file path components (full path, directory path, file name with extension, file name without extension, and extension), but the parent folder name is missing.
C:/abc/xyz/parent/file.ext
Of course it's easy to extract the parent folder name from the full path or directory path using a transformer such as the FilenamePartExtractor, but I feel something redundant.
Sometimes the parent folder name will be used to create a new attribute (e.g. the destination file name), so I think it would be more convenient if the PATH reader could retrieve the parent folder name (e.g. "path_foldername").
The features from the PATH reader have several attributes storing file path components (full path, directory path, file name with extension, file name without extension, and extension), but the parent folder name is missing.
C:/abc/xyz/parent/file.ext
Of course it's easy to extract the parent folder name from the full path or directory path using a transformer such as the FilenamePartExtractor, but I feel something redundant.
Sometimes the parent folder name will be used to create a new attribute (e.g. the destination file name), so I think it would be more convenient if the PATH reader could retrieve the parent folder name (e.g. "path_foldername").
<strong>This post is closed to further activity.</strong><br />
It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br />
If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br />
If there is a genuine update to be made, please contact us and request that the post is reopened.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.