Skip to content

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Nov 16, 2021

This function should have never worked unless one operates in the current working directory.

f.endswith(extension))]

files.sort(key=lambda x: os.path.getmtime(x))
files.sort(key=lambda x: os.path.getmtime(os.path.join(fdir, x)))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This continues to return a file name, without the fdir path to it.

@ax3l ax3l mentioned this pull request Nov 16, 2021
3 tasks
@ax3l
Copy link
Member Author

ax3l commented Nov 16, 2021

@zingale existing issue in get_recent_filename when not searching in pwd fixed, ready for review :)

This function should have never worked unless one operates in the
current working directory.
@ax3l ax3l force-pushed the fix-getRecentFilename branch from 5ed8e56 to 0bfd081 Compare November 16, 2021 16:09
@ax3l
Copy link
Member Author

ax3l commented Nov 16, 2021

@zingale ready for review/merge :)

@zingale zingale merged commit e688212 into AMReX-Codes:main Nov 16, 2021
@ax3l ax3l deleted the fix-getRecentFilename branch November 16, 2021 18:00
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

Successfully merging this pull request may close these issues.

2 participants