Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 8 of 8

Thread: Zip.AddFolder

  1. #1
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629

    Zip.AddFolder

    Hello.

    Zip.Add does not add Folders.
    What I'm suggesting is 2 separate functions instead of just one,

    Zip.AddFile
    Zip.AddFolder


    Thanks,
    Mina

  2. #2
    Join Date
    May 2006
    Posts
    5,380

    Its All About Folders !

    Yes, i also think you should bring all the other objects functions in line with the sideshow object (SlideShow.FillFromFolder)

    ListBox.FillFromFolder
    Combo.FillFromFolder

    both adding the filename as text and path as data
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432

    Thumbs up

    I agree with both of you
    +1

  4. #4
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Quote Originally Posted by RizlaUK View Post
    Yes, i also think you should bring all the other objects functions in line with the sideshow object (SlideShow.FillFromFolder)

    ListBox.FillFromFolder
    Combo.FillFromFolder

    both adding the filename as text and path as data
    Hi Rizla.
    This would be a nice addition. However, you can accomplish this for now using functions. (Didn't test, but should work out fine)

    Code:
    function ListBox.FillFromFolder(LB_Name, fPATH)
     fi_PATHS = File.Find(fPATH, "*.*", false, false, nil, nil);
     if fi_PATHS == nil then
       Application.ExitScript();
     end
    
    for j, fi_PATH in fi_PATHS do
    fi_PART = String.SplitPath(fi_PATH);
    
    ListBox.AddItem(LB_Name, fi_PART.Filename, fi_PATH);
    end
    
    end
    
    function Combo.FillFromFolder(CB_Name, fPATH)
     fi_PATHS = File.Find(fPATH, "*.*", false, false, nil, nil);
     if fi_PATHS == nil then
       Application.ExitScript();
     end
    
    for j, fi_PATH in fi_PATHS do
    ComboBox.AddItem(CB_Name, fi_PART.Filename, fi_PATH);
    end
    
    end


    Code:
    -- Call Like This
    ListBox.FillFromFolder("ListBox1", "AutoPlay\\MyFolder")
    Combo.FillFromFolder("ComboBox1", "AutoPlay\\MyFolder")

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    Thanks Mina, but i already have a set of listbox and combo functions i use quite regular and i just thought these ones would be of use to nearly every-body who uses AMS.

    Also, ListBox.FilesToZip() would be another nice function to have to go with ListBox.FillFromFolder(), and SlideShow.FilesToZip().....and....lol the list is endless

    i might go write a mega lua plugin with all the *missing* functions
    Open your eyes to Narcissism, Don't let her destroy your life!!

  6. #6
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    Hi Guys,

    I had a couple questions regarding your requests.

    1) As far as the Zip.AddFolder suggestion, could you explain a little further how what you're describing differs from the current functionality in the Zip.Add action given the use of wildcards and the "IncludeFolderNames" parameter?

    2) The suggestions regarding the ListBox and ComboBox folder actions, what were you guys looking for. The slideshow is a little different in that you are always working with files. What were you guys thinking for the functionality of the action in the ListBox and ComboBox. Something like the "Text" being the filenames, and the "Data" being the full paths to the files?
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    As far as the Zip.AddFolder suggestion, could you explain a little further how what you're describing differs from the current functionality in the Zip.Add action
    getting the actual folder structure in the zip can be quite tricky for the novice user, i know it took me a while, a "AddFolder" function could maybe wrap the "AddFile" function and make it a little easer to just zip a folder


    Something like the "Text" being the filenames, and the "Data" being the full paths to the files?
    exactly what i was thinking, i know its very much a targeted function but proberly a very widely used targeted function, im sure everyone at some point will use a listbox for files/folders


    edit, while on the subject of zip files, how about SFX support ??, i get errors if i try to add files to a SFX exe
    Open your eyes to Narcissism, Don't let her destroy your life!!

  8. #8
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    Thanks for the suggestions.

    FillFromFolder - REF: 17273
    Zip action - REF: 17272
    SFX support - REF: 17274
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts