How can I iterate and process filepaths that do not have an extension in their name on linux/Putty?

I have to process 1TB of files and to do this I cannot work on my local computer (windows), but on a server that uses linux. When I try to process a smaller segment of files ( list of filepaths) on windows, there does not seem to be an issue at all, it all works fine. However, when I run the same script on linux, it seems it cannot find the files that do not end with an extension.

  1. How can I get it to work?
  2. Why does the filepath error not happen on windows but it does on linux? (fyi using Putty)

list of filepaths example:

f = ['/folder1/folder2/document.txt',
     '/projects/id2/document3'] #as you can see this file has a missing extension 

segment of script to process the filepaths(works fine on my local machine but not on linux):

import tika
def apply_tika(f):
    tika extracts the content of the documents
    :param f: list of filepaths 
    :return list of tuples with id fullpath and unprocessed content of all files. 
    list_info = [] 
    content_files = []  
    final_list_tuples = []
    for item in f:
        file_info = parser.from_file(item)      #!!seems the code breaks here because it cannot find the third filepath of list f
    for dictionary in list_info:
        for k,v in dictionary.items():
            if k == 'content':
    zipped = list(zip(f, content_files))

    for t in zipped:
        if t[1] != None:
    list_of_lists = [list(item) for item in final_list_tuples] 

    return list_of_lists

Error message in Putty shell:

"Traceback (most recent call last):
  File "", line 111, in <module>
    content = apply_tika(deduplicated)
  File "", line 89, in apply_tika
    file_info = parser.from_file(item)
  File "/home/user/miniconda3/lib/python3.8/site-packages/tika/", line 40, in from_file
    output = parse1(service, filename, serverEndpoint, headers=headers, config_path=config_path, requestOptions=requestOptions)
  File "/home/user/miniconda3/lib/python3.8/site-packages/tika/", line 335, in parse1
    with urlOrPath if _is_file_object(urlOrPath) else open(path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/projects/id2/document3.'"