win32_list_dir   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/win32.xtm

Implementation

;; returns a list of file names in dir
;;
;; for example:
;; (win32_list_dir2 (Str "c:/Users/andrew/Documents/code/extempore/*"))
;; (win32_list_dir2 (Str "c:/Users/andrew/Documents/code/extempore/*.exe"))
(bind-func win32_list_dir
  (lambda (dir:String*)
    (let ((data:WIN32_FIND_DATA* (salloc))
          (hfind:HANDLE (FindFirstFileA (cstring dir) data))
          (lst:List{String*}* (list)))
      (if (= hfind INVALID_HANDLE_VALUE)
          lst
          (begin
            (set! lst (cons (get_file_name data) lst))
            (while (FindNextFileA hfind data)
              (set! lst (cons (get_file_name data) lst)))
            (FindClose hfind)
            lst)))))


Back to Index

Similar Entries

  • PreludeList    scheme    /digego/extempore/tree/v0.8.9/libs/base/prelude.xtm
  • Windows-add-libdir-to-PATH    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • cl:copy-list    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:list*    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:list-of??    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:make-list    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • fill_direction_vector    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • fill_direction_vector    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_view_matrix_dir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • fill_view_matrix_dir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fleet_get_ip_list    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • get-midi-device-names-alist    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/midisetup.xtm
  • get-midi-input-device-names-alist    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/midisetup.xtm
  • get-midi-output-device-names-alist    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/midisetup.xtm
  • glwrapper-arg-list-symbols    scheme    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-getprocaddress.xtm
  • glwrapper-arg-list-symbols    scheme    /digego/extempore/tree/v0.8.9/libs/external/gl/glcore-glew.xtm
  • impc:ir:make-arglist-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:str-list-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:get-polyfunc-candidate-list    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:get-polytype-candidate-list    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:gl-proc-alist-index    scheme    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-getprocaddress.xtm
  • impc:ti:list    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:remove-single-element-lists    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:tuple-list-from-pretty-tuple-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:unify-lists    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • list    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • list->string    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • list->vector    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • list-head    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • list-position    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • list-ref    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • list-tail    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • listener    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • listener-callback    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • make-list    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-list-with-proc    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • match-list    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern.xtm
  • multi-list-combination    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • multi-list-combination-2    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • p:list    scheme    /digego/extempore/tree/v0.8.9/libs/base/pattern.xtm
  • pc:quantize-list    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • scheme-midi-listener    scheme    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • string->list    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • string_list_from_file    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • string_list_from_string    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • sum_list    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • sys_dir_make    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_dir_make_recursive    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_dir_remove    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_g_chdir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • sys_g_get_current_dir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • sys_g_get_home_dir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • sys_g_mkdir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • sys_temp_dir_get    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • vector->list    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • xhid_listener    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/hid.xtm
  • xtmdoc-alist-lessthan    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • xtmdoc-all-doc-alists    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • xtmdoc-clean-nativefunc-alist    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • xtmdoc-write-alist-args-as-json    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • xtmdoc-write-alist-as-json    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm