documentFileLength(path) Return a path's file size, if path not exists or not available , return 0 . path (String) Use This Function to Read/Write Media Storage Device or "/storage/emulated/0/Android/<subPath>" or Termux Document .