equal
deleted
inserted
replaced
1871 |
1871 |
1872 for name in os.listdir(extrafilespath): |
1872 for name in os.listdir(extrafilespath): |
1873 extrafiles.append(( |
1873 extrafiles.append(( |
1874 name, |
1874 name, |
1875 self._connector.BlobFromFile( |
1875 self._connector.BlobFromFile( |
1876 os.path.join(extrafilespath, name)))) |
1876 # use file name as a seed to avoid collisions |
|
1877 # with files having same content |
|
1878 os.path.join(extrafilespath, name),name))) |
1877 |
1879 |
1878 # Send PLC on target |
1880 # Send PLC on target |
1879 object_path = builder.GetBinaryPath() |
1881 object_path = builder.GetBinaryPath() |
1880 object_blob = self._connector.BlobFromFile(object_path) |
1882 # arbitrarily use MD5 as a seed, could be any string |
|
1883 object_blob = self._connector.BlobFromFile(object_path, MD5) |
1881 |
1884 |
1882 self.HidePLCProgress() |
1885 self.HidePLCProgress() |
1883 |
1886 |
1884 self.logger.write(_("PLC data transfered successfully.\n")) |
1887 self.logger.write(_("PLC data transfered successfully.\n")) |
1885 |
1888 |