Skip to main content
Question

GoogleDriveConnector - read full path, not just relative

  • June 18, 2025
  • 1 reply
  • 19 views

lazarlubomir
Contributor
Forum|alt.badge.img+10

Hi everyone,

please is there any way how to read the full path of the file from GoogleDrive (e.g. Shared with me/Division A/Documents/PDF/data_view.pdf)? I can see that GoogleDriveConnector can load just _relative_path (e.g. Documents/PDF/data_view.pdf).

 

Thank you so much!

Lubo

1 reply

j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • June 19, 2025

the transformer will see Drive-created files when another action (like List) is selected. If you use the Download action and save a file on your machine, remember you can use the FilenamePartExtractor…. to get the windows_path. From there use StringReplacer and Regex if you need to manipulate the file path.

Most python back FME packages like this Connector, use relative paths for the online directory. The other option is to use the _sharable_link attibute from the list action

So may you end up with multiple GoogleDriveConnector transformers chained together, each with a different action List, Download, change the attributes, merge, then Upload all using one of the previous transformers output attributes.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings