Open a file on a network drive

I’ve a file (on a Mac) in this path on a network drive:

file:///Volumes/Work/Test/Test.sqlite

Which is the correct value/path to assign fo the FolderItem ?

Var dbFile As FolderItem dbFile = Volume.Child("Work/Test/Test.sqlite")

Hi @Fabrizio Cesare

maybe you can try this…

Var dbFile as FolderItem = New FolderItem("file:///Volumes/Work/Test/Test.sqlite", FolderItem.PathModes.URL)

Are you intending to have this network file accessed from more than one computer. If so, please be aware that this is inadvisable.

[quote=498108:@Javier Menéndez]Hi @Fabrizio Cesare

maybe you can try this…

Var dbFile as FolderItem = New FolderItem("file:///Volumes/Work/Test/Test.sqlite", FolderItem.PathModes.URL)

or:

Var dbFile as FolderItem = New FolderItem("/Volumes/Work/Test/Test.sqlite", FolderItem.PathModes.Native)