词条 | Virtual folder |
释义 |
In computing, a virtual folder generally denotes an organizing principle for files that is not dependent on location in a hierarchical directory tree. Instead, it consists of software that coalesces results from a data store, which may be a database or a custom index, and presents them visually in the format in which folder views are presented. A virtual folder can be thought of as a view that lists all files tagged with a certain tag, and thus a simulation of a folder whose dynamic contents can be assembled on the fly, when requested. It is related in concept to several other topics in computer science, with names including saved search, saved query, and filtering. TechnologyVirtual folders provide a means for making it easier for users to find files that are content-related, such as by project. The user needs to specify criteria and all files matching the criteria are dynamically aggregated into the virtual folder. Files in a virtual folder are not limited to any single physical location on the hard drive, as is the case with traditional folders, but can be in any location. In fact, files in a virtual folder do not even need to be stored as files on the hard drive. They may be on a network share or in a custom application datastore such as e-mail inbox or even a database. Documents cannot be "stored" in a virtual folder, since physically a virtual folder is just a file storing a search query. Any attempt to store a file in a virtual folder, depending on the implementation, is redirected to some physical store. Most implementations speed up searching by pre-indexing the hard drive, or the locations where the search has to be performed. So when searching is to be done, the index, which is a representation of the entire data suitable for fast searching, is used. Since the entire folder hierarchy is not accessed, the search is completed much faster. ImplementationsVirtual folders are a well-established construct in operating systems. BeOS included a version of virtual folders referred to as "saved queries", that has since influenced the development of virtual folder features in operating systems like Mac OS X, Windows and Linux. These virtual folders are populated dynamically by executing a search on the entire file system, or a subset of it, or by using the cached version of the search. HistoryBeOSThe initial developer preview of the operating system, released in October 1995, included database-like functionality to make it easier for users to manage their files. To do this the filesystem indexes certain file attributes to allow for fast searching. By default the filesystem indexes the filename, size and last modified timestamp automatically, but could also create indexes for other attributes when told to by either an application or by the user.[1] When a user performs a file search, a file is created in the folder "/boot/home/queries" with a name derived from the content of the query and the date and time of the search, such as "Name = Western Infirmary - Mar 21, 11:59:40 PM". The query criteria of the search is stored in an attribute of the file called "qrystr".[2] When the file is opened, the filesystem indexes were queried and a Tracker window is opened with an up-to-date list of files that match the criteria. Additional features were added to search with subsequent releases. Release 2 introduced the ability to edit saved queries,[3] and Release 3 gave the users the chance to define their own names for saved queries.[4] Before Release 4 in 1998, all queries were stored indefinitely. However, with R4, the BeOS developers introduced a seven-day limit on all queries. If a user wanted a query to stay around longer, they could uncheck a "Temporary" flag in the Find dialog.[5] macOSIn April 2005, Apple released Mac OS X v10.4, with their implementation of virtual folders called Smart Folders. These folders are dynamically updated by the Spotlight engine to contain content that match certain criteria. For example, this could be used to give you a folder containing all the Word documents containing the word "shpadoinkle" that have been edited within the last 7 days. Smart Folders are created by saving a Spotlight search, which records the search criteria in a Property list file with a .savedSearch extension and, by default, saves them in the "/Users/username/Library/Saved Searches" folder. Dominic Giampaolo, One of the lead developers of the BeOS filesystem,was also involved in adding a virtual folder system in Apple Inc.'s Mac OS X operating system.[6]There are many variants of the Smart Folder concept that can be seen in applications that use the Spotlight engine, usually identified by a gear symbol on a purple-hued icon. Examples include: Smart Mailboxes in Mail and Smart Groups in Address Book. Before Spotlight earlier versions of macOS had a similar concept in the iApps (iTunes and iPhoto), but these did not use the system-wide Spotlight engine. Windows {{anchor|Windows Vista}}In November 2006, Microsoft released Windows Vista which allows users to save any search query as a Search Folder, a type of virtual folder. Search Folders are designed so that users are not required to remember where their files are stored.[7][8] A Search Folder is not a physical folder, but is essentially an XML file that stores a defined query in a form that can be used by the Windows Search subsystem.[9] Because of this, a Search Folder can be created anywhere that a normal folder can be created. A similar approach exists in Windows XP when the Windows Indexing Service is enabled, as a search can be saved as a .fnd file.[7][8] However, a saved search query in Windows XP only saves a user's search criteria; users must still specify the location and perform the search again as results are not dynamic.[8] Whenever a Search Folder is accessed, it returns results that are relevant to a saved search query; results manifest themselves as actual files and folders in storage. Search queries can be defined based on a number of parameters and properties, including all or part of a filename, specific dates, the content of the files themselves, associated metadata, specific file types, where files are located, and various other attributes.[10] A feature called Query Composition allows searches to be based on other Search Folders to further refine results.[11][12] Windows Vista, by default, references the profile of the user who originally created a saved search as part of the query's scope, which includes the disk partition.[13] This design choice does not prevent saved searches from being shared with other users, but it prevents them from operating on different partitions or user profiles. While users can manually modify the contents of a saved search so that the scope references the %USERPROFILE% environment variable, which will enable it to operate on other machines or profiles regardless of the original author or location, Microsoft has released a SearchMelt Creator utility that automates this process for the user.[13] In early development builds of Windows Vista, there existed pre-configured Search Folders for the default user profile folders (e.g., Documents, Music, and Pictures) that replaced the links to these folders seen on the Windows Start menu. When browsing directories in Windows Explorer, the navigation pane would feature predefined Search Folders that were relevant to a currently viewed directory. When viewing the Documents folder, for example, the navigation pane would populate with individual Search Folders based on authors of documents, their ratings, their keywords, their types, and documents that were recently changed.[14][15] {{quote box |width=30em |bgcolor=#c6dbf7 |align=right |"We actually considered at one time not having folders. It was all going to be virtualized storage with search queries and so on. We would just completely abstract the file organization stuff from the physical folders and disk structure. But that was too much of a leap over the chasm, too confusing for users." |source=Greg Sullivan[20]}}Pre-release builds later included subqueries that aggregated content from a main Library Search Folder.[11] Microsoft's stated aim with this approach was to move beyond the traditional physical folder concept,[16] but the company received a considerable amount of feedback from users who found that the new Search Folder-based approach was too confusing.[11] In particular, the Search Folders being located on the Start menu led to the belief that there existed multiple physical folders with similar names and content.[16] As a result of this feedback, the company reinstated the links to the physical folders on the Start menu, in a manner similar to how they appear in previous versions of Windows, and remove several of the Search Folders that were available prior to Windows Vista's release to manufacturing. In spite of the feature being less prominent within the interface, the operating system does include several preconfigured Search Folders: Recent Documents, Recent E-mail, Recent Music, Recent Pictures and Videos, Recently Changed, and Shared By Me, all of which are powered by a single Indexed Locations Search Folder, which realizes the previous Library concept.[11] In Windows 7, the concept of virtual folders has been significantly realized with the introduction of the Libraries feature. Similar to Saved Searches, a Library is simply an XML file but with the GNOMEIn GNOME 2.14, a saved search is a virtual folder whose contents are the result of a Nautilus search, which has multiple backends. The contents of these folders are determined dynamically when the folder is opened, and updated automatically when files are created or modified. Other implementationsEmail clientsVirtual folders are also a well-established construct in email clients. In early 1991, the Emacs-based mail reader VM provided a virtual folder facility in its version 5.09.[17][18] VM allows the users to define virtual folders using rules, taking their mail content from one or more physical folders and based on selection criteria dealing with dates, authors, recipient, subject, message body etc. Virtual folders can also be created interactively and take content from previously defined virtual folders, thereby cascading the selection criteria. The Evolution email client created by Helix Code in 2000, also incorporated virtual folders. Folders can be created that automatically list e-mails matching user-defined rules, for example all e-mail from a particular address or all e-mail that includes a specific keyword.[19][20] The Opera web browser released a new mail client (beta in November 2002, final version in Jan 2003), M2 in which virtual folders (called access points) were used for all email management. Virtual folders were automatically made for active contacts, for attachments and for assigned labels. Virtual folders were also automatically generated whenever a search was performed, and manual virtual folders could use multiple logical mail header rules for their construction (including using regular expressions). Microsoft Outlook 2003 added a similar feature called Search Folders. Gmail, first released in 2004, bases all of its mail management on virtual folders accessed via labels. Mozilla Thunderbird also has the ability to create search folders and from version 1.5 allowed the search to be done over more than one email account.[21] Music clientsIn July 2002, Apple announced version 3 of iTunes which includes Smart Playlists which can be considered a variant of a virtual folder.{{clarify|date=December 2011}} The only difference is that the search executed on accessing them is not on the file system's folder hierarchy, but on their internal data-store.[22] Microsoft also added a similar feature to version 9 of Windows Media Player in Windows XP called Auto Playlists in 2003.[23] See also
References1. ^{{cite book | title=The BeOS Bible | author=Scot Hacker | year=1999 | publisher=Peachpit Press | isbn=0-201-35377-6}} 2. ^{{cite web | url=http://betips.net/1997/09/09/show-formula-query-strings-in-tracker/ | title=Show formula query strings in Tracker | author=Chris Herborth | work=The BeOS Tip Server | accessdate=2007-03-22 }} 3. ^{{cite web | url=http://www.be.com/aboutbe/pressreleases/97-10-07_Preview2Ship.html | title=Be Ships BeOS Preview Release 2 | author=Be Inc. | date=October 7, 1997 | publisher=Be Inc. | accessdate=2006-12-24 |archiveurl=https://web.archive.org/web/19980520221220/http://www.be.com/aboutbe/pressreleases/97-10-07_Preview2Ship.html |archivedate=May 20, 1998 }} 4. ^{{cite web | url=http://www.beatjapan.org/mirror/www.be.com/users/tips/tip41.html | archive-url=https://web.archive.org/web/20020724192405/http://www.beatjapan.org/mirror/www.be.com/users/tips/tip41.html | dead-url=yes | archive-date=2002-07-24 | title=Searching on the BeOS | author=Be Inc. | work=The BeOS Tip of the Week | publisher=Be Inc. | accessdate=2006-12-24 }} 5. ^{{cite web | url=http://betips.net/1997/09/09/self-destructing-queries/ | title=Self-destructing queries | author=Scot Hacker | work=The BeOS Tip Server | accessdate=2007-03-22}} 6. ^{{cite web | url=http://www.nobius.org/~dbg/ | title=Personal homepage | author=Dominic Giampaolo | accessdate=2006-09-10 }} 7. ^1 {{cite web |url=http://www.microsoft.com/betaexperience/nlarchive/bexp2/issue_7/WindowsVistaSearch.aspx |title=Windows Vista Virtual Folders and Search |last=Price |first=John |publisher=Microsoft |work=MSDN |accessdate=October 23, 2015}} 8. ^1 2 {{cite web |url=http://www.techrepublic.com/article/an-in-depth-look-at-windows-vistas-virtual-folders-technology/ |title=An in-depth look at Windows Vista's Virtual Folders technology |last=Shultz |first=Greg |date=October 12, 2005 |publisher=CBS Interactive |work=TechRepublic |accessdate=November 15, 2015}} 9. ^{{cite web |url=https://msdn.microsoft.com/en-us/library/windows/desktop/bb892885%28v=vs.85%29.aspx |title=Saved Search File Format |author=Microsoft |work=MSDN |accessdate=November 11, 2015}} 10. ^{{cite web |url=http://www.techrepublic.com/blog/how-do-i/how-do-i-save-and-refine-desktop-searches-in-microsoft-windows-vista/ |title=How do I... Save and refine desktop searches in Microsoft Windows Vista? |last=Kaelin |first=Mark |date=July 17, 2007 |publisher=CBS Interactive |work=TechRepublic |accessdate=November 11, 2015}} 11. ^1 2 3 {{cite web |url=http://shellrevealed.com/blogs/shellblog/archive/2006/10/31/Query-Composition_3A00_-Building-a-search-upon-another-search.aspx |title=Query Composition: Building a search upon another search |last=Bentz |first=Ben |date=October 31, 2006 |publisher=Microsoft |work=Shell: Revealed Blog |archiveurl=https://web.archive.org/web/20061215210717/http://shellrevealed.com/blogs/shellblog/archive/2006/10/31/Query-Composition_3A00_-Building-a-search-upon-another-search.aspx |archivedate=December 15, 2006 |accessdate=October 20, 2015}} 12. ^{{cite web |url=http://www.techrepublic.com/blog/windows-and-office/narrow-a-saved-search-with-vistas-query-composition-feature/ |title=Narrow a saved search with Vista's Query Composition feature |last=Shultz |first=Greg |date=December 11, 2007 |publisher=CBS Interactive |work=TechRepublic |accessdate=November 11, 2015}} 13. ^1 {{cite web |url=http://windowsvistablog.com/blogs/windowsvista/archive/2007/05/14/searching-part-iii-do-you-know-what-a-searchmelt-is.aspx |title=Searcing, part III: Do you know what a SearchMelt is? |last=White |first=Nick |date=May 14, 2007 |publisher=Microsoft |work=Windows Vista Team Blog |archiveurl=https://web.archive.org/web/20070516034547/http://windowsvistablog.com/blogs/windowsvista/archive/2007/05/14/searching-part-iii-do-you-know-what-a-searchmelt-is.aspx |archivedate=May 16, 2007 |accessdate=October 20, 2015}} 14. ^{{cite web |url=http://winsupersite.com/article/product-review/working-with-display-drivers-in-windows-vista-beta-1 |title=Working with Display Drivers in Windows Vista Beta 1 |last=Thurrott |first=Paul |authorlink=Paul Thurrott |date=October 6, 2010 |publisher=Penton |work=SuperSite for Windows |accessdate=November 11, 2015}} 15. ^{{cite web |url=http://www.windowsdevcenter.com/pub/a/windows/2005/08/02/vista.html?page=2 |title=An In-Depth Look at Vista, Part 2 |last=Lee |first=Wei-Meng |date=August 2, 2005 |publisher=O'Reilly Media |accessdate=November 11, 2015}} 16. ^1 2 {{cite web|url=http://winsupersite.com/reviews/winvista_5270.asp |title=Windows Vista December 2005 CTP (Build 5270) Review Part 1: Setup and User Interface |last=Thurrott |first=Paul |authorlink=Paul Thurrott |date=December 21, 2005 |publisher=Penton |work=SuperSite for Windows |archiveurl=https://web.archive.org/web/20051223080047/http://winsupersite.com/reviews/winvista_5270.asp |archivedate=December 23, 2005 |accessdate=October 13, 2015 |deadurl=unfit }} 17. ^{{cite web | url=http://www.wonderworks.com/vm/user-manual/vm_15.html#SEC28 | title=VM User's Manual - Virtual Folders | author=Kyle Jones | publisher=Wonderworks | accessdate=2010-01-26 }} 18. ^{{cite web | url=http://web.psung.name/emacstips/vm.html | title=VM Configuration and Workflow | author=Phil Sung | accessdate=2010-03-13 }} 19. ^{{cite web | url=http://linuxplanet.com/linuxplanet/previews/2013/1/ | title=You Say You Want an Evolution | author=Michael Hall | date=June 30, 2000 | publisher=Linux Planet | accessdate=2006-12-24 }} 20. ^{{cite web | url=http://www.linuxtoday.com/news_story.php3?ltsn=1999-07-08-002-10-NW-LF | title=Dave Whitinger and Miguel de Icaza at the ZD Open Source Forum | author=Dave Whitinger | date=July 8, 1999 | publisher=Linux Today | accessdate=2006-12-24}} 21. ^{{cite web | url=http://kb.mozillazine.org/Saved_Search | title=Saved Search - MozillaZine Knowledge Base | accessdate=2010-01-22}} 22. ^{{cite web | url=https://www.apple.com/pr/library/2002/jul/17itunes.html | title=Apple Announces iTunes 3 | author=Apple | date=July 17, 2002 | publisher=Apple | accessdate=2006-12-25 | archive-url=https://web.archive.org/web/20060726000426/http://www.apple.com/pr/library/2002/jul/17itunes.html | archive-date=July 26, 2006 | dead-url=yes | df=mdy-all }} 23. ^{{cite web | url=http://www.microsoft.com/presspass/press/2003/jan03/01-07moviemakerplayerfinalpr.mspx | title=Microsoft Announces Digital Media Upgrade for Windows XP With Final Release of Windows Media Player 9 Series and Windows Movie Maker 2 | author=Microsoft | date=January 3, 2003 | publisher=Microsoft | accessdate=2006-12-25}} 3 : Windows Vista|Computer file systems|Windows disk file systems |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。