Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Get filename from path

  1. #1
    Join Date
    Jun 2013
    Posts
    24

    Default Get filename from path

    Hi. I am working with file paths and URLs in a database, not actual files. In our migration we need to strip the path away, leaving just the file name (and extension).

    I have been playing with Get File Names, and the parsing it does is perfect, but it expects actual files to exist to get attributes from and fails if they don't exist. I want exactly the same thing without the actual files needing to be available.

    Suggestions?

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    What about FileNameUtils:

    Name:  FileNameUtils.jpg
Views: 198
Size:  27.1 KB
    So long, and thanks for all the fish.

  3. #3
    Join Date
    Jun 2013
    Posts
    24

    Default

    Perfect. Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.