How to read the zip file from the drive - pyspark

I am read the zip file from the google drive in the databricks i am getting an error:
Archive: /tmp/dataset.csv.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /tmp/dataset.csv.zip or
/tmp/dataset.csv.zip.zip, and cannot find /tmp/dataset.csv.zip.ZIP, period.
tail: cannot open 'dataseta1.csv' for reading: No such file or directory
rm: cannot remove 'dataseta1.csv': No such file or directory

open your Google Drive
account > New > More > Connect more apps.
Search for ZIP Extractor and install it. Now, you can select any archived file in Google Drive for extraction. Select the file and right-click to Open with the ZIP Extractor for ZIP files stored in Drive

Related

[IO.Compression.ZipFile]::ExtractToDirectory() & Expand-Archive issues with Zip of a single file

I am implementing a tool to address software installs for Work from Home staff, and trying to download ZIP files containing either a folder that is an Autodesk "deployment" or a single EXE or MSI update file. The folder containing ZIP is unzipping fine with
[IO.Compression.ZipFile]::ExtractToDirectory($downloadFilePath, $deploymentPath)
However, the ZIP files that contain nothing but a single file are throwing
System.Management.Automation.MethodInvocationException
Exception calling "ExtractToDirectory" with "2" argument(s): "The archive entry was compressed using an unsupported compression method."
using
[IO.Compression.ZipFile]::ExtractToDirectory($downloadFilePath, $deploymentPath)
I also tried Expand-Archive -Path $downloadFilePath -DestinationPath $deploymentPath and there I get a similar error
System.Management.Automation.MethodInvocationException
Exception calling "ExtractToFile" with "3" argument(s): "The archive entry was compressed using an unsupported compression method."
But oddly, I am not using three arguments. Also note that both approaches work with the zip of a folder, while neither approach works with the zip of a file.
All ZIP files have been created with Right Click>Send to>Compressed (zipped) folder, highlighting either the deployment folder or the file to be zipped. And the problem ZIP file works fine to extract manually.
Any thoughts?

How to import site into Local by flywheel using existing file directory only, and no sql file

This guide indicates that you need both a file directory and sql file to accomplish this, does anyone know a workaround?
https://localwp.com/help-docs/how-to-import-a-wordpress-site-into-local/
You can retrieve the backup archives from the starting-site folder. Within your WordPress folder, navigate to wp-content -> uploads -> backwpup-xxxxxx-backups. Open the archive. Inside you’ll find a .SQL file (local.sql).

Attribute "A" missing in the zipped file through powershell "Compress-Archive"

Compressed a file through powershell Compress-Archive feature.
On opening the archive in the 7-zip there is no 'A' in the attribute column, i believe 'A' stands for archive.
When file compressed through windows feature (send to -> Compressed (zipped) folder) "A" attribute is present(When opened archive in 7-zip).
How can I get the 'A' attribute when zipped through Compress-Archive?
Real problem:
I am trying to unzip the file through puppet.
unzip working on files zipped through windows feature
unzip not working on Compress-Archive feature (only through puppet, normal unzip command is working)
On opening both the zipped files (through Compress-Archive, windows feature) in 7-zip archive I observed that attribute 'A' is missing in the zipped (Compress-Archive) file.
Please help.
Tagged puppet as well, could be a known scenario.

open and read zip file from chrome-app

Now that google chrome handles zip files, basically, is there a way from inside a chrome app to get the files, and the contents of the files in a zip archive? From the user end, a zip file is mounted as a drive, containing the contents, but from the app end, the zip file is just a file. Is there a way from the app to "mount" the file, get the mount point and enumerate the contents and inflate them?
Nope, there are no particular APIs exposed that would allow this.
You will need to include your own ZIP engine - be it in JavaScript or in (P)NaCl. Then you can work with HTML Filesystem to hold inflated files while you work with them.

Moodle: Error in extracting downloaded zip submission

From The Course page when I click download all submission zip file is downloaded. But I am not able to extract zip file as it gives following error.
Archive: CS_632-2013-2-Project_final_submission-27762.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of CS_632-2013-2-Project_final_submission-27762.zip or
CS_632-2013-2-Project_final_submission-27762.zip.zip, and cannot find CS_632-2013-2-Project_final_submission-27762.zip.ZIP, period.
This error is coming for all course submission downloads.
I'm guessing you are right clicking the link and saving? This won't work, you need to actually click the link which will then automatically download the correct file.