简体   繁体   English

CSV 下载分为 CSV 和 CSV.part

[英]CSV download is splitting into CSV and CSV.part

I'd like to download a CSV file from JupyterLab.我想从 JupyterLab 下载 CSV 文件。

It's 66MB and it shows the file is downloading, but it's split into CSV and CSV.part.它是 66MB,显示文件正在下载,但它分为 CSV 和 CSV.part。

According to JupyterLab, the download has finished but they haven't combined into a single CSV.根据 JupyterLab 的说法,下载已经完成,但它们还没有组合成一个 CSV。

When I open the csv.part, it says there are no applications to open it.当我打开 csv.part 时,它说没有应用程序可以打开它。

When I open the csv, it's empty.当我打开 csv 时,它是空的。

I've tried re-downloading and it's always the same.我试过重新下载,总是一样。

What do I do here?我在这里做什么?

逆转录

Whatever application you used to download the file - a web browser?无论您使用什么应用程序下载文件 - web 浏览器? Safari? Safari? Chrome?铬合金? - downloads the data into a temporary file (with .part on the end) and it is supposed to rename it to myfile.csv after the download has completed. - 将数据下载到一个临时文件中(最后带有.part ),下载完成后应该将其重命名为myfile.csv

For whatever reason, it has not done this last step.无论出于何种原因,它都没有完成这最后一步。

Simply delete the empty file myfile.csv and rename myfile.csv.part to myfile.csv .只需删除空文件myfile.csv并将myfile.csv.part重命名为myfile.csv You will see a warning ("Are you sure you want to rename this?") - yes.您将看到一条警告(“您确定要重命名它吗?”) - 是的。 You are sure.你确定。

There is nothing magical about file name extensions, except of course that they tell MacOS which application to open the file with.文件扩展名并没有什么神奇之处,当然它们会告诉 MacOS 使用哪个应用程序打开文件。 They should also give you a clear indication of what sort of data is in the file, but this is not actually enforced by anything.它们还应该让您清楚地指示文件中的数据类型,但这实际上并没有被任何东西强制执行。 If you rename a file to something inappropriate for the content (eg if you name your file "myfile.mp3"), it simply won't load into the application as the data isn't valid.如果您将文件重命名为不适合内容的名称(例如,如果您将文件命名为“myfile.mp3”),由于数据无效,它根本不会加载到应用程序中。 But, there is nothing special about the.part file - the name is just supposed to indicate that the download (probably) hasn't finished yet.但是,.part 文件并没有什么特别之处——该名称只是应该表明下载(可能)尚未完成。 Except in this case, I assume you know that it has.除了在这种情况下,我假设你知道它有。

(This seems like a bug to me, perhaps with JupyterLab - but that's beside the point). (这对我来说似乎是一个错误,也许是 JupyterLab - 但那不是重点)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM