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

Issue 85580045: FSA Fix b/1753517: Hidden Folders should not be crawled. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by Brett
Modified:
10 years ago
Reviewers:
pjo, mifern
CC:
connector-cr_google.com
Visibility:
Public.

Description

FSA Fix b/1753517: Hidden Folders should not be crawled. This fixes a bug in NioFileDelegate.isHidden(). It seems that NIO Files.isHidden(Path) does not consider hidden folders to be hidden. From the NIO Files javadoc: "On Windows a file is considered hidden if it isn't a directory and the DOS hidden attribute is set." I don't know why Sun/Oracle decided to exclude hidden directories. Consequently, I changed the implementation to use File.isHidden(), which does pay attention to the hidden attribute on directories.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/com/google/enterprise/adaptor/fs/NioFileDelegate.java View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 3
Brett
10 years ago (2014-04-09 22:17:19 UTC) #1
pjo
LGTM. Thank you. - technology's compounding interest - On Wed, Apr 9, 2014 at 3:17 ...
10 years ago (2014-04-09 22:42:00 UTC) #2
Brett
10 years ago (2014-04-09 23:33:33 UTC) #3
Committed 09 April 2014 to File System Adaptor:

To https://code.google.com/p/plexi.fs/
   22b6a21..0b9554d  master -> master
Sign in to reply to this message.

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