Skip to content

Commit b83ae86

Browse files
committed
Clarify comment.
1 parent 9ad48b8 commit b83ae86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hipscat/io/file_io/file_pointer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def does_file_or_directory_exist(pointer: FilePointer) -> bool:
3737

3838

3939
def is_regular_file(pointer: FilePointer) -> bool:
40-
"""Checks if a file or directory exists for a given file pointer
40+
"""Checks if a regular file (NOT a directory) exists for a given file pointer.
4141
4242
Args:
4343
pointer: File Pointer to check if a regular file
@@ -57,7 +57,7 @@ def find_files_matching_path(*paths: str) -> List[FilePointer]:
5757
Returns:
5858
New file pointers to files found matching the path
5959
"""
60-
matcher = os.path.join(*paths)
60+
matcher = append_paths_to_pointer(*paths)
6161
return [get_file_pointer_from_path(x) for x in glob.glob(matcher)]
6262

6363

0 commit comments

Comments
 (0)