Welcome Guest, Not a member yet? Register   Sign In
get_filenames() behavior
#6

@dafriend thanks for the feedback! Sorry if my examples were unclear. See the third code block for what I mean by "relative" - it includes the portion of the path between the $source_dir you passed in and the filename. So if I pass in /foo/bar and the only file in there is nested at /foo/bar/bat/baz/file.txt the current behavior would return ['file.txt'], with $include_source it would return ['/foo/bar/bat/baz/file.txt'], and my proposed "relative" return would be ['bat/baz/file.txt'].
Reply


Messages In This Thread
get_filenames() behavior - by MGatner - 03-27-2020, 05:46 PM
RE: get_filenames() behavior - by jreklund - 03-28-2020, 01:38 AM
RE: get_filenames() behavior - by John_Betong - 03-28-2020, 10:02 PM
RE: get_filenames() behavior - by MGatner - 03-29-2020, 06:28 AM
RE: get_filenames() behavior - by dave friend - 03-30-2020, 08:00 AM
RE: get_filenames() behavior - by MGatner - 03-30-2020, 08:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB