Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofDirectory diff results on diff mac osx versions #5852

Closed
ofZach opened this issue Jan 19, 2018 · 2 comments
Closed

ofDirectory diff results on diff mac osx versions #5852

ofZach opened this issue Jan 19, 2018 · 2 comments

Comments

@ofZach
Copy link
Contributor

ofZach commented Jan 19, 2018

I don't know if this is a bug or a feature but because apple introduced apfs

https://en.wikipedia.org/wiki/Apple_File_System

ofDirectory listDir gives different results in terms of order across different osx versions. This has led to some confusion with students where image sequences play out of order on newest OSX, etc.

obviously ofDirectory::sort fixes things so we get the same results but wonder if we maybe shouldn't just sort on listDir to make things more normalized?

somewhat related (re: sorting) #2578

@arturoc
Copy link
Member

arturoc commented Jan 20, 2018

This has always worked like this in linux, that's why we introduced the sort method. I'm almost sure it's even working with natural sorting instead of alphabetic already too.

I think we never did it by default cause it might be redundant in some platforms and perhaps be a performance problem in some cases if you try to read an extra large directory. I guess it would be a very rare case though.

All the examples regarding reading files for image sequences.... include a call to sort after listDir because of this.

@ofZach
Copy link
Contributor Author

ofZach commented Jan 20, 2018

ok ! I will just add sort to my examples, I had been neglecting to include it since things just work on osx but they don't anymore...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants