Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3457)

Issue 303920043: [dfvfs] Add support for TAR files with missing directory entries. #148 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 9 months ago by dc3.plaso
Modified:
7 years, 9 months ago
Reviewers:
Joachim Metz, onager
CC:
kiddi, log2timeline-dev_googlegroups.com
Visibility:
Public.

Description

[dfvfs] Add support for TAR files with missing directory entries. #148

Patch Set 1 #

Total comments: 19

Patch Set 2 : Fix code style and typos. #

Total comments: 4

Patch Set 3 : Modify GetFileEntryByPathSpec function to create kwargs variable #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -42 lines) Patch
M dfvfs/file_io/tar_file_io.py View 1 1 chunk +4 lines, -0 lines 1 comment Download
M dfvfs/vfs/tar_file_entry.py View 1 6 chunks +50 lines, -19 lines 2 comments Download
M dfvfs/vfs/tar_file_system.py View 1 2 2 chunks +16 lines, -15 lines 0 comments Download
A test_data/missing_directory_entries.tar View 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/vfs/tar_file_entry.py View 1 2 chunks +45 lines, -9 lines 0 comments Download
M tests/vfs/tar_file_system.py View 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 9
dc3.plaso
7 years, 9 months ago (2016-06-30 14:35:41 UTC) #1
Joachim Metz
Overall look OK, a couple of nits. I have one concern in terms of file ...
7 years, 9 months ago (2016-07-04 04:43:11 UTC) #2
Joachim Metz
https://codereview.appspot.com/303920043/diff/1/dfvfs/vfs/tar_file_entry.py File dfvfs/vfs/tar_file_entry.py (right): https://codereview.appspot.com/303920043/diff/1/dfvfs/vfs/tar_file_entry.py#newcode211 dfvfs/vfs/tar_file_entry.py:211: yield self._file_system.GetFileEntryByPathSpec(path_spec) Note to self, double check if these ...
7 years, 9 months ago (2016-07-04 04:48:50 UTC) #3
dc3.plaso
https://codereview.appspot.com/303920043/diff/1/dfvfs/file_io/tar_file_io.py File dfvfs/file_io/tar_file_io.py (right): https://codereview.appspot.com/303920043/diff/1/dfvfs/file_io/tar_file_io.py#newcode62 dfvfs/file_io/tar_file_io.py:62: raise IOError(u'Attempted to open directory.') On 2016/07/04 04:43:11, Joachim ...
7 years, 9 months ago (2016-07-05 19:34:56 UTC) #4
dc3.plaso
Code updated.
7 years, 9 months ago (2016-07-05 19:41:15 UTC) #5
Joachim Metz
A short reply for now, still need to evaluate the latest changes and the note ...
7 years, 9 months ago (2016-07-06 06:42:43 UTC) #6
dc3.plaso
Code updated.
7 years, 9 months ago (2016-07-06 12:51:54 UTC) #7
dc3.plaso
https://codereview.appspot.com/303920043/diff/20001/dfvfs/vfs/tar_file_system.py File dfvfs/vfs/tar_file_system.py (right): https://codereview.appspot.com/303920043/diff/20001/dfvfs/vfs/tar_file_system.py#newcode99 dfvfs/vfs/tar_file_system.py:99: try: On 2016/07/06 06:42:43, Joachim Metz wrote: > I ...
7 years, 9 months ago (2016-07-06 12:52:03 UTC) #8
Joachim Metz
7 years, 9 months ago (2016-07-15 06:56:31 UTC) #9
I've manually tweaked this CL and merged the changes in. 

https://github.com/log2timeline/dfvfs/commits/master

You can close this now.

Sorry for the delay on my side.

https://codereview.appspot.com/303920043/diff/40001/dfvfs/file_io/tar_file_io.py
File dfvfs/file_io/tar_file_io.py (right):

https://codereview.appspot.com/303920043/diff/40001/dfvfs/file_io/tar_file_io...
dfvfs/file_io/tar_file_io.py:60: if file_entry.IsDirectory():
I changed this to: if not file_entry.IsFile():

https://codereview.appspot.com/303920043/diff/40001/dfvfs/vfs/tar_file_entry.py
File dfvfs/vfs/tar_file_entry.py (right):

https://codereview.appspot.com/303920043/diff/40001/dfvfs/vfs/tar_file_entry....
dfvfs/vfs/tar_file_entry.py:33: # Add trailing path separator.
This seems not to be needed.

https://codereview.appspot.com/303920043/diff/40001/dfvfs/vfs/tar_file_entry....
dfvfs/vfs/tar_file_entry.py:212: yield
self._file_system.GetFileEntryByPathSpec(path_spec)
I've changes this a bit to have less overhead.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b