Forráskód Böngészése

[hdfs] Fix File browser zipfile upload bug (#2862)

* [backend]Fix for Extracting zip file in the File Browser causes exception

Co-authored-by: Harsh Gupta <42064744+Harshg999@users.noreply.github.com>
VijayaKanchamreddy 3 éve
szülő
commit
ed4f20addf
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      desktop/libs/hadoop/src/hadoop/fs/hadoopfs.py

+ 1 - 1
desktop/libs/hadoop/src/hadoop/fs/hadoopfs.py

@@ -235,7 +235,7 @@ class Hdfs(object):
       else:
       else:
         LOG.info(_('%(remote_dst)s does not exist. Trying to copy.') % {'remote_dst': remote_dst})
         LOG.info(_('%(remote_dst)s does not exist. Trying to copy.') % {'remote_dst': remote_dst})
 
 
-      src = file(local_src)
+      src = open(local_src)
       try:
       try:
         try:
         try:
           self.create(remote_dst, permission=0o755)
           self.create(remote_dst, permission=0o755)