LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using list file?

If "list file" outputs an alphabetically sorted array, is there a convenient function to list the directory of files by creation date?

0 Kudos
Message 1 of 9
(345 Views)

Hey, you will have to write this function.
the way of getting the creation date of file is that:

maxnoder1995_0-1721325239951.png



good luck.

0 Kudos
Message 2 of 9
(326 Views)

I think that "List Folder" doesn't do any sorting.  It just returns the files in whatever order it gets them from the OS.  You shouldn't make any assumptions about what that order is.

0 Kudos
Message 3 of 9
(287 Views)

Well I might've got off on a tangent and didn't really realize that yes the OS that does that sorting.. Thank you

0 Kudos
Message 4 of 9
(282 Views)

Of course you can sort by any other feature or filename part. Here's how you would sort based on last modification date.

 

altenbach_0-1721404231714.png

 

0 Kudos
Message 5 of 9
(236 Views)

Well I think that's become the most useful solution out of the three so thank you everyone I'm up and running

0 Kudos
Message 6 of 9
(225 Views)

Did’nt you ask for creation date?

0 Kudos
Message 7 of 9
(220 Views)

@maxnoder1995 wrote:

Did’nt you ask for creation date?


My code was a generalized example and, as I said, the sorting can be done on any file feature as long as you can get it from somewhere. 😄

 

0 Kudos
Message 8 of 9
(214 Views)

Yes shortly after I sent that I realized maybe I didn't quite ask what I was looking for exactly but what you folks have sent back to me I've made work with

0 Kudos
Message 9 of 9
(212 Views)