Is there a way to list the contents of a particular directory?

Hi,
I'm creating the blue-print of a new iPad app and was wondering if there was a way to request the contents of a particular directory (eithre local to the device or a a particular directory on the web) and also get the "type" of each item.
For example if inside a directory "Directory1" and inside that directory I have 4 files and another directory, (file1.gif, file2.txt, file3.mov, file4.mp3, Directory2)
Is there a way to request the contents of Directory1 and the type of files they are?
The ideal thing will be to get a recursive request and get an array of contents of all directories inside a particular directory.
something like:
Directory1[file1a.gif,file1b.txt,file1c.mov,file1d.mp3,[Directory2[file2b.mov,fi le2b.mp3]]]
What I want is to create a navigation for the user based on the resultant strign.
Am I re-inventing the wheel here?
Any direction will be greatly appreciated. I rather adjust blue-print now based on what is possible.
Thanks!

We are users here. You might have better luck going to the developers forum.
http://developer.apple.com/devforums/
There are also links on that page that may help too.

Similar Messages

  • Is there a way to list the next 5 appointments on my calendar in the notification area?

    is there a way to list the next 5 appointments on my calendar in the notification area?

    I had that on but it doesn't show anything the reminder only shows up if the event has a reminder set for a specific time. I want to straight up see the next 1,5,... Events in list form. This may not be possible but it would be great. Just like when you are in calendar and display by list.

  • Is there a way to view the content of my iCloud backup on a computer

    The back up to iCloud was from an iPhone 4 on IOS 6 (this was the IOS that the phone was on when it did a back up, before it was updated to IOS 7.1.2) , and I can see within iCloud drive that the back up is there, but is there a way to view the content of that back up like the pictures for the most part.

    No. The only way to see it is to restore the backup to an iOS device.

  • Is there a way to compare the contents of a library by comparing itl files or some other files?

    Is there a way to compare the contents of a library by comparing itl files or some other files?
    I need to compare the contents of my current library to one that existed 2 months ago but ALL I have is the itl file from 2 months ago.  Can this be done?

    You are correct, many people have noticed over the years that Sound Check does not work as advertised.
    A more effective approach is to treat the files with a 3rd party volume normalization program. Although I have not personally used it, many users on this Forum have reported good results from an inexpensive program called iVolume.

  • How to list the contents of an OSX directory, and output to text file?

    hello there any hints with any known program that does following
    I have recorded my music directory to DVD and now i would like to make an .txt file what the dvd contains...cos its way of hand to write all 100xx files by hand...
    How to list the contents of an OSX directory, and output to text file?
    any prog that does that? any hints?
    best regards

    This script makes a hierarchical file listing all files in a folder and subfolder:
    Click here to launch Script Editor.
    choose folder with prompt "Choose a folder to process..." returning theFolder
    set theName to name of (info for theFolder)
    set thepath to quoted form of POSIX path of theFolder
    set currentIndex to theFolder as string
    do shell script "ls -R " & thepath returning theDir
    set theDirList to every paragraph of theDir
    set newList to {"Contents of folder \"" & theName & "\"" & return & thepath & return & return}
    set theFilePrefix to ""
    repeat with i from 1 to count of theDirList
    set theLine to item i of theDirList
    set my text item delimiters to "/"
    set theMarker to count of text items of thepath
    set theCount to count of text items of theLine
    set currentFolder to text item -1 of theLine
    set theFolderPrefix to ""
    if theCount is greater than theMarker then
    set theNestIndex to theCount - theMarker
    set theTally to -1
    set theFilePrefix to ""
    set theSuffix to ""
    repeat theNestIndex times
    set theFolderPrefix to theFolderPrefix & tab
    set theFilePrefix to theFilePrefix & tab
    if theTally is -1 then
    set theSuffix to text item theTally of theLine & theSuffix
    else
    set theSuffix to text item theTally of theLine & ":" & theSuffix
    end if
    set currentIndex to "" & theFolder & theSuffix
    set theTally to theTally - 1
    end repeat
    end if
    set my text item delimiters to ""
    if theLine is not "" then
    if word 1 of theLine is "Volumes" then
    set end of newList to theFolderPrefix & "Folder: > " & currentFolder & return
    else
    try
    if not folder of (info for alias (currentIndex & theLine & ":")) then
    set end of newList to theFilePrefix & tab & tab & tab & "> " & theLine & return
    end if
    end try
    end if
    end if
    end repeat
    open for access file ((path to desktop as string) & "Contents of folder- " & theName & ".txt") ¬
    with write permission returning theFile
    write (newList as string) to theFile
    close access theFile

  • Is there a way to bind the content of a ListProperty?

    Hi,
    Is there an existing way to bind the content of a ListProperty?  Consider the following:
    private final ListProperty<Worker<?>> workers = new SimpleListProperty<>(FXCollections.observableArrayList());
        public ListProperty<Worker<?>> workersProperty() {return workers;}
        public ObservableList<Worker<?>> getWorkers() {return workers.get();}
        public void setWorkers(ObservableList<Worker<?>> workers) {this.workers.set(workers);}
        private final ObservableList<Worker<?>> stateWatchedWorkers = FXCollections.observableArrayList(
                new Callback<Worker<?>, Observable[]>() {
                    @Override
                    public Observable[] call(final Worker<?> param) {
                        return new Observable[]{
                                param.stateProperty()
    What I want to do is bind the content of the stateWatchedWorkers list to workers.  If the entire workers list is replaced, I want stateWatchedWorkers to be updated to match the content of the new list.  Put another way, I want the stateWatchedWorkers list to be mapped to the current list being held by the workers property.

    James_D answered this on StackOverflow.  Using Bindings.bindContent(target, listProperty) is all that's needed.  It "just works".  Here's a code example to show how it works:
    import javafx.beans.Observable;
    import javafx.beans.binding.Bindings;
    import javafx.beans.property.*;
    import javafx.collections.FXCollections;
    import javafx.collections.ListChangeListener;
    import javafx.collections.ObservableList;
    import javafx.util.Callback;
    public class ListPropertyContentBinding {
    /* This is a quick test to see how ListProperty notifies about list changes
    * when the entire list is swapped.
    * Conclusion: When the backing list is changed, ListProperty will perform
    * notification indicating that all items from the original list were
    * removed and that all items from the updated (new) list were added.
    ObservableList<Person> oldPeople = FXCollections.observableArrayList();
    ObservableList<Person> newPeople = FXCollections.observableArrayList();
    // A list property that is used to hold and swap the lists.
    ListProperty<Person> people = new SimpleListProperty<>(oldPeople);
    // A list that includes an extractor.  This list will be bound to people and
    // is expected to additionally notify whenever the name of a person in the
    // list changes.
    ObservableList<Person> nameWatchedPeople = FXCollections.observableArrayList(
            new Callback<Person, Observable[]>() {
                @Override
                public Observable[] call(final Person person) {
                    return new Observable[]{
                            person.name
    public ListPropertyContentBinding() {
        Bindings.bindContent(nameWatchedPeople, people);
        nameWatchedPeople.addListener((ListChangeListener<Person>) change -> {
            while (change.next()) {
                System.out.println("    " + change.toString());
        Person john = new Person("john");
        System.out.println("Adding john to oldPeople. Expect 1 change.");
        oldPeople.add(john);
        System.out.println("Changing john's name to joe. Expect 1 change.");
        john.name.set("joe");
        Person jane = new Person("jane");
        System.out.println("Adding jane to newPeople. Expect 0 changes.");
        newPeople.add(jane);
        System.out.println("Updating people to newPeople. Expect ? changes.");
        people.set(newPeople);
        Person jacob = new Person("jacob");
        System.out.println("Adding jacob to oldPeople. Expect 0 changes.");
        oldPeople.add(jacob);
        System.out.println("Adding jacob to newPeople. Expect 1 change.");
        newPeople.add(jacob);
        System.out.println("Changing jacob's name to jack. Expect 1 change.");
        jacob.name.set("jack");
        System.out.println("Updating people to oldPeople. Expect ? changes.");
        System.out.println(" oldPeople: " + oldPeople.toString());
        System.out.println(" newPeople : " + newPeople.toString());
        people.set(oldPeople);
    public static void main(String[] args) {
        new ListPropertyContentBinding();
    class Person {
        private final StringProperty name = new SimpleStringProperty();
        public Person(String name) {
            this.name.set(name);
        @Override
        public String toString() {
            return name.get();
    ...and the output from running the above.
    Adding john to oldPeople. Expect 1 change.
        { [john] added at 0 }
    Changing john's name to joe. Expect 1 change.
        { updated at range [0, 1) }
    Adding jane to newPeople. Expect 0 changes.
    Updating people to newPeople. Expect ? changes.
        { [joe] removed at 0 }
        { [jane] added at 0 }
    Adding jacob to oldPeople. Expect 0 changes.
    Adding jacob to newPeople. Expect 1 change.
        { [jacob] added at 1 }
    Changing jacob's name to jack. Expect 1 change.
        { updated at range [1, 2) }
    Updating people to oldPeople. Expect ? changes.
    oldPeople: [joe, jack]
    newPeople : [jane, jack]
        { [jane, jack] removed at 0 }
        { [joe, jack] added at 0 }

  • Is there a way to verify the contents of my Vault?

    I have recently attempted to move my vault to another drive and the process stopped part way through, the receiving drive ( Verbatim Firewire 500 Gig.) stopped and I got the "a drive has been improperly disconnected" type error message and the following pop-up:
    and this when I tried to eject the source drive (WD My Book 500 Gig.)
    I was able to eject it after a relaunch of Finder and a restart of my iMac  I did a disk repair to both the WD drive and the Verbatim drive. The latter had some errors in "Volume" information which were repaired by disk utility and I tried to move the Vault again with the same result again so I wonder whether the Vault file is corrupted and need to know if there is a way to verify the integrity of the files contained in it.

    Hi Kieran,
    You can read and set the tool tips using the .assist.toolTip property:
    this.assist.toolTip = "This is a tooltip...";
    Hope that helps,
    Niall

  • I have an ipod classic - is there a way to copy the contents of it to my computer - my old computer is crashed.

    how can i copy the contents of my ipod classic back to my computer - i have a new computer and the old one was crashed so all on iit was lost

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Is there any way to backup the content of adiscovery earch mailbox

    I have performed a Discovery search for aduting purpose an dI wonder if I can backup to ta tape the content of the resulst stored on on the Dicosver Search mailbox, to save space on my Exchange servers cluster

    Yes, you can take backup to tape, if you are already taking regular backup of your Exchange database then you don't have to really worry about taking additional backup for this mailbox.
    Second option is to export the content to a PST.
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Is there a way to clear the content stored in dbms_error_code

    Hi everybody,
    Here is my situation. I'm doing an application in forms 6.i. There's an ON-ERROR trigger defined at form level which calls a procedure programmed to treat errors. Inside this procedure I issue a message like "record is being used by another user" when I get the -54 dbms_error_code.
    So far, so good. The problem is when I test the lock. I do a select for update nowait to lock a record (at sql*plus) and then I try to update this record (in forms). The exception is raised just fine. But when I returned to sql*plus and issue a rollback to end the transaction and go to forms and try to continue with the operation, I succeed, the record is recorded in the database but i get the error message "record is being used by another user". This happens always in the commit line of my code and I know that it passes through ON-ERROR and issue the message.
    I know that it's because of the last error that ocurred (-54 lock). So i was wondering if there is a way of clearing this last error. Please, anyone can help me?
    Thanks anyway.

    The On-error trigger gets raised for lots of different reasons. Only a few of these are caused by database errors, and ONLY THEN should you check dbms_error_code.
    <p>When you get any other errors, ones caused by doing something wrong within the form processing, On-Error runs, but dbms_error_code is not changed. So you should not check it.
    <p>EVERY time on-error runs, you should check Error_Code, and only with certain values should you check DBMS_Error_Text. Here is an on-error trigger I use:
    <p>Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011

  • Is there a way to list the 'names' of the IMAQ images in memory?

    looking for a way to generate an array of strings that contains the 'names' of all the IMAQ images in memory. I'm doing some heavy image processing and the nature of the image processing functions makes it easier to work with multiple copies of images to avoid nasty surprises (like images declared one type being unexpectedly recast as another). Unfortunately, this means drawing dozens of wires everywhere to image disposal points, which does nothing but add clutter to the block diagram.
    I'd like to be able to poll the images in memory and delete only those images which are no longer needed.
    Thanks,
    Root
    global variables make robots angry

    Root,
    You could use IMAQ GetImageInfo to get the name of an image.  If your image references are stored in an array it would be easy to generate a list of image names using IMAQ GetImageInfo in a For Loop.
    Hope this helps,
    Message Edited by mfitzsimons on 01-29-2008 05:21 PM
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • Is there a way of resizing the contents of multiple bounding boxes at the same time using the number fields in the tool bar?

    I'musing cs6 and need to resize an image and two text boxes to a specific pixel width.
    I try selecting all of the boxes and punching in 960 px in the resizing field in the tool bar but only the bounding boxes and not their contents get resized...

    Use the horizontal scale field (and include the units) rather than the width field.

  • I live on a ship and have a slow connection. Is there way to get the content via CD?

    I live on a ship and have a slow internet connection. Is there a way to get the content via CD?

    You can still get it (DVD in this case) in some places -
    http://www.amazon.co.uk/Apple-MB795Z-A-Logic-Studio/dp/B002ISDD1K/ref=sr_1_3?ie= UTF8&qid=1340218920&sr=8-3

  • In Mail, is there a way to print the list of mail activity in a folder without actually printing each email?

    In Mail, is there a way to print the list of mail activity in a folder without actually printing each email?
    Thanks to all.

    Actually, I noticed in "More Like This" questions similar to mine.  One of the suggestions worked perfectly.
    Command Shift 4 turns the arrow into a target scope.  Use it to take a screen shot of the area you want printed.  Thanks to all.

  • Is there any way to make the sent folder in mail list emails "to" instead of  "from"

    Is there any way to make the sent folder in mail list emails in the "to" order instead of  "from".

    Sure open Sent folder.
    Just above first message is an icon titled Sort By Date followed by a downward pointing arrow.
    Click on the arrow and select "To" from the list.
    Allan

Maybe you are looking for

  • Problem with watchpoints in new abap debugger

    Hello, when using the new debugger to watch a value-parameter in a form, the debugger stops every time the value of the variable in the watchpoint is changed. Even when there is an extra condition entered. Is this a bug, or is it supposed to happen t

  • Recording Audio from DVD Video

    Hi, I have a music concert video on DVD. I would like to record a song off the video so that I can learn to play the guitar part. Is there any software out there that will separate the audio from the video, or in other words, capture the audio and ma

  • Does anyone know what BTMMPortInUseAgent.plugin is?

    Hello, I am new to the forum... as well as to macs... i just recently bought a mac mini and it was running fine, until i noticed two things. 1... that there was a "UserEventAgent - not responding" showing in my activity monitor and 2. that the startu

  • Why do I have a E showing where my wifi symbol should be.

    why do I have an E showing where my wifi symbol should be on my iphone.

  • Help. please ResultSet prob

    hi using a mckoi databse setup. i have a number being read in from a txt file whiichis in turn used for searching the database, no problem there, so its finding the data ok. problem is i need to use the data it finds in other parts of the program. ho