COSFILETRANSFER_VIRTUALFILESYSTEM(3erl)
β¨ NAME β¨
CosFileTransfer_VirtualFileSystem β okay so this is the Erlang module that implements the OMG CosFileTransfer::VirtualFileSystem interface. It's chilling in the cosFileTransfer manual, section 3erl, and honestly? She's a whole vibe. π¦
π DESCRIPTION π
Bestie, listen. If you want access to the record definitions for the structures in here, you gotta drop this line in:
-include_lib("cosFileTransfer/include/*.hrl").
That's it. That's the whole description. Iconic, minimal, no notes. π
π EXPORTS π
π« '_get_file_system_type'(VFS) -> Return
Types, babes:
VFS = #objref
Return = 'FTP' | 'NATIVE'
This is a read only attribute and it represents the target object's associated file system. So likeβ¦ whichever object you're pointing at, this tells you what kind of file system it's riding with β 'FTP' or 'NATIVE'. Periodt. β¨
π '_get_supported_content_types'(VFS) -> Return
Types, my love:
VFS = #objref
Return =
Yeah, that Return = is genuinely justβ¦ empty in the original. Not me forgetting to type it, I promise β it's giving mysterious, it's giving suspense, it's giving nothing and everything at once. π
This is a read only attribute too, and it represents the target object's supported content types. That's the whole tea. π
π§ login(VFS, User, Password, Account) -> Return
Types, gorgeous:
VFS = #objref
User = Password = Account = string()
Return = {FileTransferSession, Directory} | {'EXCEPTION', E}
FileTransferSession = Directory = #objref
Okay so here's the moment. This operation creates a new instance of a FileTransferSession AND a Directory. And the latter β the Directory β represents the current working directory of the FileTransferSession that got returned to you. Like they come as a matching set, a little duo, a package deal. π«Ά
And if things go sideways? You get {'EXCEPTION', E} instead. No cap. π
Also note:User,PasswordandAccountare allstring(), and theReturncan also be that{'EXCEPTION', E}tuple, so like⦠handle it, bestie.
π bye bye π
That's the whole page, and honestly she ate. This was the Ericsson AB cosFileTransfer 5.2.2 situation β sending you all the slay, stay hydrated, and may your #objrefs always resolve. πππΈ
π¦ where this page comes from
- fedora 43: erlang-cosFileTransfer 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosFileTransfer 1:5.2.2-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms