langflow-base-nightly 1.7.0.dev56__py3-none-any.whl → 1.7.0.dev57__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
langflow/api/v2/files.py CHANGED
@@ -186,7 +186,7 @@ async def upload_user_file(
186
186
  if existing_file:
187
187
  # File exists, append to it by reusing the same filename
188
188
  # Extract the filename from the path
189
- unique_filename = existing_file.path.split("/")[-1] if "/" in existing_file.path else existing_file.path
189
+ unique_filename = Path(existing_file.path).name
190
190
  else:
191
191
  # File doesn't exist yet, create new one with extension
192
192
  unique_filename = f"{root_filename}.{file_extension}" if file_extension else root_filename
@@ -383,7 +383,7 @@ async def delete_files_batch(
383
383
  # Delete all files from the storage service
384
384
  for file in files:
385
385
  # Extract just the filename from the path (strip user_id prefix)
386
- file_name = file.path.split("/")[-1]
386
+ file_name = Path(file.path).name
387
387
  storage_deleted = False
388
388
 
389
389
  try:
@@ -480,7 +480,7 @@ async def download_files_batch(
480
480
  for file in files:
481
481
  # Get the file content from storage
482
482
  file_content = await storage_service.get_file(
483
- flow_id=str(current_user.id), file_name=file.path.split("/")[-1]
483
+ flow_id=str(current_user.id), file_name=Path(file.path).name
484
484
  )
485
485
 
486
486
  # Get the file extension from the original filename
@@ -574,7 +574,7 @@ async def download_file(
574
574
  raise HTTPException(status_code=404, detail="File not found")
575
575
 
576
576
  # Get the basename of the file path
577
- file_name = file.path.split("/")[-1]
577
+ file_name = Path(file.path).name
578
578
 
579
579
  # If return_content is True, read the file content and return it
580
580
  if return_content:
@@ -650,7 +650,7 @@ async def delete_file(
650
650
  raise HTTPException(status_code=404, detail="File not found")
651
651
 
652
652
  # Extract just the filename from the path (strip user_id prefix)
653
- file_name = file_to_delete.path.split("/")[-1]
653
+ file_name = Path(file_to_delete.path).name
654
654
 
655
655
  # Delete the file from the storage service first
656
656
  storage_deleted = False
@@ -724,7 +724,7 @@ async def delete_all_files(
724
724
  # Delete all files from the storage service
725
725
  for file in files:
726
726
  # Extract just the filename from the path (strip user_id prefix)
727
- file_name = file.path.split("/")[-1]
727
+ file_name = Path(file.path).name
728
728
  storage_deleted = False
729
729
 
730
730
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langflow-base-nightly
3
- Version: 1.7.0.dev56
3
+ Version: 1.7.0.dev57
4
4
  Summary: A Python package with a built-in web application
5
5
  Project-URL: Repository, https://github.com/langflow-ai/langflow
6
6
  Project-URL: Documentation, https://docs.langflow.org
@@ -46,7 +46,7 @@ Requires-Dist: langchain-experimental<1.0.0,>=0.3.0
46
46
  Requires-Dist: langchain-ibm<1.0.0,>=0.3.8
47
47
  Requires-Dist: langchainhub~=0.1.15
48
48
  Requires-Dist: langchain~=0.3.21
49
- Requires-Dist: lfx-nightly==0.2.0.dev56
49
+ Requires-Dist: lfx-nightly==0.2.0.dev57
50
50
  Requires-Dist: loguru<1.0.0,>=0.7.1
51
51
  Requires-Dist: mcp<2.0.0,>=1.17.0
52
52
  Requires-Dist: multiprocess<1.0.0,>=0.70.14
@@ -122,7 +122,7 @@ langflow/api/v1/validate.py,sha256=Ixsdn8bdaZu9OvEhCDyjPeixibl5ZyM1EhUOWLCR6v4,1
122
122
  langflow/api/v1/variable.py,sha256=xC9UaVAvK2vTk2UxYajZMBPfbctJhtII71E3uVZmSPU,9165
123
123
  langflow/api/v1/voice_mode.py,sha256=cNQzJAoL_tW582JnJEQn-Hk6M2XWLP5Cd_i3gJOe2fs,60321
124
124
  langflow/api/v2/__init__.py,sha256=VCQh31dvZLN_q-i2xYGXyNbo1BCAuQmNiXhuE7NHd7o,261
125
- langflow/api/v2/files.py,sha256=1OK1JnR0VsJm770QvXLs64-KfQA6iIYsv6-UIGfaYz0,33059
125
+ langflow/api/v2/files.py,sha256=gTSURXoqeAqdRnFJdOoDgk2Gei8v2SqZYEX4dC1F0VA,32982
126
126
  langflow/api/v2/mcp.py,sha256=G4P7EbrhGG997ZDf8YBI65PLFVl7sPxRe-nfqgratnQ,13320
127
127
  langflow/api/v2/registration.py,sha256=uPgDLKajJp6LZWNkR1Li0nzAXobcj_WAPdlvWlgQD3I,4645
128
128
  langflow/base/__init__.py,sha256=8i3qZNo6iAtWMi4FUDgMksSgmBKuL0N-D6YOOuR4HTs,281
@@ -2277,7 +2277,7 @@ langflow/utils/util.py,sha256=bZqi9Fqj2mlp9tKUA-Q4ePpooxtbuVLjlAvdml4kcjs,1516
2277
2277
  langflow/utils/validate.py,sha256=BPqoIMvjl4wbMJTTWo1zMHP0kQCa2TfmDT9f-nPT9Ng,112
2278
2278
  langflow/utils/version.py,sha256=OjSj0smls9XnPd4-LpTH9AWyUO_NAn5mncqKkkXl_fw,2840
2279
2279
  langflow/utils/voice_utils.py,sha256=Ypxg8s5jFd1o5wBbx1W8oKK7vh4kwo0-iuTcFqIwy5I,3350
2280
- langflow_base_nightly-1.7.0.dev56.dist-info/METADATA,sha256=fQOvG9VHaLqJJo3tLwanTV5EaQQDlV3i72f1cY6bVVA,4461
2281
- langflow_base_nightly-1.7.0.dev56.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
2282
- langflow_base_nightly-1.7.0.dev56.dist-info/entry_points.txt,sha256=JvuLdXSrkeDmDdpb8M-VvFIzb84n4HmqUcIP10_EIF8,57
2283
- langflow_base_nightly-1.7.0.dev56.dist-info/RECORD,,
2280
+ langflow_base_nightly-1.7.0.dev57.dist-info/METADATA,sha256=RoSdSBoVyiTv0z8C3pviusTi0LXeViWL9gwwvg6XhJ0,4461
2281
+ langflow_base_nightly-1.7.0.dev57.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
2282
+ langflow_base_nightly-1.7.0.dev57.dist-info/entry_points.txt,sha256=JvuLdXSrkeDmDdpb8M-VvFIzb84n4HmqUcIP10_EIF8,57
2283
+ langflow_base_nightly-1.7.0.dev57.dist-info/RECORD,,