AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Virtueller Zugriff auf Dateien

Ein Thema von freimatz · begonnen am 22. Nov 2024 · letzter Beitrag vom 4. Dez 2024
Antwort Antwort
freimatz

Registriert seit: 20. Mai 2010
1.513 Beiträge
 
Delphi 11 Alexandria
 
#1

AW: Virtueller Zugriff auf Dateien

  Alt 26. Nov 2024, 07:57
Dnake für alle Rückmeldungen.

@Kas Ob.: Ja, das ist preislich schon eine andere Liga ... Davon abgesehen habe ich es nicht ganz so verstanden was die anbieten. Es macht für mich den Eindruck als da tatsächlich ein virtuelles Dateisystem in Windows zum Einsatz kommt. Ich möchte dagegen nur die Delphi-Datei-Methoden virtuell haben.

@Redeemer: ich vermute mal, dass Du mich nicht richtig verstanden hast. In deinem Code finde ich nirgendwo ein FileExists.
Eine function TZipFileWrapper.FileExists(const AFilename: string): Boolean; zu machen scheint mir nicht gerade schwer zu sein. Mir geht es hier in dem Thread nicht darum wie man auf konkret Dateien, Iso oder Zip zugreift sondern wie man diese drei unter einen Hut bekommt, so dass man Dateioperationen in existierendem Code allenfalls marginal ändern muss.
  Mit Zitat antworten Zitat
Kas Ob.

Registriert seit: 3. Sep 2023
457 Beiträge
 
#2

AW: Virtueller Zugriff auf Dateien

  Alt 26. Nov 2024, 09:40
@Kas Ob.: Ja, das ist preislich schon eine andere Liga ... Davon abgesehen habe ich es nicht ganz so verstanden was die anbieten. Es macht für mich den Eindruck als da tatsächlich ein virtuelles Dateisystem in Windows zum Einsatz kommt. Ich möchte dagegen nur die Delphi-Datei-Methoden virtuell haben.
Hi,

Well, most likely i don't understand your need 100%, though i got the idea that you looking for some sort of solid file storage, or at least the interface or layer for such thing solution, back when it was Eldos, these 4 libraries were more than 4 and smaller, and per their designs they fit together also they had brilliant layered design so at every stage you can derive your own work and replace the default, anyways, if you are looking for the virtual or the solid file storage, then :

1) if you look at https://www.callback.com/cbfsvault then you will see that you can build and use the virtual/solidfile , they called it CBFS Vault layer, yet again this file(/system) could be mounted on every system as the library comes with many OS drivers to do so, or leave it for your own applications (example, called users in the diagram), again it is multi layered library,
to make it clearer with example, if you are familiar with TrueCrypt/VeraCrypt then you can have your own natively Pascal/Delphi built with few lines of code, and again this doesn't mean you are limited to their solid file storage standard as you can provide the files as you see fit from zip or generate them on the fly, these are just a scratch of what this library can do, and i hope it did clear some.

2) I remember seeing and testing few libraries in torry.net years ago, well can't find much now, but have a look at https://github.com/gabr42/GpDelphiUn...redStorage.pas it could be your needed interface, yet i already have fixed data structure to be used with its own, so it is solid file storage only for storing ordinary files (not virtualized), but non the less it is great and will provide you with idea(s).
Kas
  Mit Zitat antworten Zitat
Redeemer

Registriert seit: 19. Jan 2009
Ort: Kirchlinteln (LK Verden)
1.134 Beiträge
 
Delphi 2009 Professional
 
#3

AW: Virtueller Zugriff auf Dateien

  Alt 26. Nov 2024, 10:02
@Redeemer: ich vermute mal, dass Du mich nicht richtig verstanden hast. In deinem Code finde ich nirgendwo ein FileExists.
Nein, weil ich gedacht habe, eine einzige Zeile hinzuzufügen, wäre drin. Diese Zeile lautet:
Dictionary.Add(LocalHeader.FileName, Stream.Position);
Deine gewünschte Funktion ist dann TDictionary<string, Int64>.ContainsKey.
Janni
2005 PE, 2009 PA, XE2 PA
  Mit Zitat antworten Zitat
freimatz

Registriert seit: 20. Mai 2010
1.513 Beiträge
 
Delphi 11 Alexandria
 
#4

AW: Virtueller Zugriff auf Dateien

  Alt 4. Dez 2024, 14:50
Hallo Janni,
entweder verstehe ich Dich nicht oder Du mich

Wo sollte diese Zeile "Dictionary.Add(LocalHeader.FileName, Stream.Position);" hin?
Und wo bekomme ich Dictionary, LocalHeader und Stream her?

Und das "TDictionary<string, Int64>.ContainsKey" - ersetzt das dann ein FileExists?
Und wie wird gesteuert ob das auf der CD, einem ISO-Image oder in einer ZIP arbeiten soll?

Und wie sieht aus mit "FindFirst, FindNext, GetDiskClass und weiteren üblichen functions und procedures für Dateien" aus?

Well, most likely i don't understand your need 100%, though i got the idea that you looking for some sort of solid file storage, or at least the interface or layer for such thing solution, ...
Nein, ich suche kein Dateisystem. Ich habe bereits drei: a) das Windowsdateisystem (NTFS oder was auch immer) b) ZIP-Archive und c) ISO-Images
Ja, ich suche einen Layer oder sowas damit ich den Code, der für a) existiert, auch für c) und ggf. b) verwenden kann. Und mit möglichst wenigen Änderungen an diesem Code - denn das ist fehleranfällig.

Geändert von freimatz ( 4. Dez 2024 um 14:54 Uhr)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:38 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz