COSFILETRANSFER_DIRECTORY(3erl)

πŸ“¦
version 5.2.2 Β· 2 versions
, in fedora 43, fedora 44

✨ NAME ✨

CosFileTransfer_Directory β€” bestie, this module implements the OMG CosFileTransfer::Directory interface πŸ’–

It lives in the cosFileTransfer application, and its manual page is filed under CosFileTransfer_Directory(3) in the Erlang module definitions section πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so first things first: if you wanna get access to the record definitions for the structures, you gotta pull them in like this:

-include_lib("cosFileTransfer/include/*.hrl").

no cap, that's the whole vibe πŸ’…

This module also exports the functions described in:

  • CosFileTransfer_File
  • CosPropertyService_PropertySetDef in the cosProperty application

so like, don't be surprised when your Directory is out here doing File things and property-set things too. it's giving range πŸ‘‘


🌸 EXPORTS 🌸

  • list(Directory, Max) -> Return

Types:

Directory = #objref
Return = {ok, FileList, FileIterator}
FileList = [File]
File = FileIterator = #objref

So this one returns a list β€” length Max or less β€” of Object References that represent the files or directories chillin' inside the target Directory. πŸ—‚οΈβœ¨

And here's the lil plot twist: if the amount of objects found is less than Max, the returned Iterator will be a NIL object. periodt. πŸ’€


heads up bestie: this page is from the cosFileTransfer application, 5.2.2, brought to you by Ericsson AB 🫢 β€” Erlang module definition energy only, CosFileTransfer_Directory(3), iykyk 🌈⭐
πŸ“¦ where this page comes from