Current Bloomberg Data License connection folder listing
Create the Bloomberg Data License connection
This code assumes the following:
The Bloomberg Data License SFTP server login
The Bloomberg Data License SFTP server password
The Bloomberg Data License SFTP server name is
The Bloomberg Data License SFTP port number is
The decryption code is
username = 'xxxxx'; password = 'xxxxxxxx'; hostname = 'dlsftp.bloomberg.com'; portnumber = 30206; decrypt = 'nAcLeZ'; c = bdl(username,password,hostname,portnumber,decrypt);
Request the contents
list of the current
working folder using
list = dir(c)
list = 'd--x--x--x 2 root root 4096 Sep 5 11:25 bin' 'dr--r--r-- 2 root root 4096 Sep 5 11:25 etc' 'drwxrwxrwx 2 op general 61440 Sep 24 02:11 notices' ...
list contains a cell array of character vectors.
Each character vector is one folder or file name.
Close the Bloomberg Data License connection.
list— Current working folder contents
Current working folder contents, returned as an
cell array of character vectors.
n is the number
of files or folders within the current working folder. Each character
vector contains folder listing information for a folder or file name.
about Bloomberg Data License, see the relevant guides by entering
clicking <GO> in the Bloomberg terminal.