I think use doctype alias for folder name instead as they will likely be shorter than the doctype names
Also, no need to have a .config file name so long
Call the config file def.config or or dt.config. You already know what it is based on the folder it is in.
So it will be:
uSync/DT/MyDocTypeAlias1/def.config
I quite like seeing the full doctype name though, so maybe it will suffice to reduce umbraco.cms.businesslogic.web.DocumentType to DT, and reduce the config filename to def.config or dt.config
Mind you it also depends on folders that the solution sits in.
Here is my current proj:
D:\_PROJECTS\***********\**********\********\Source\*********.**********.***.*******.****.Web\uSync\umbraco.cms.businesslogic.web.DocumentType\[Core] [Base] Page\[Core] Regionalisation List Page\[Core] Regionalisation List Page.config
Swapping in DT folder and dt.config
D:\_PROJECTS\***********\**********\********\Source\*********.**********.***.*******.****.Web\uSync\DT\[Core] [Base] Page\[Core] Regionalisation List Page\dt.config
Bug: Path too long causes no deletion of doctypes etc
uSync doesnt allow deletion of anything if the filesys path of the stored config file is too long.
eek -
so just to confirm it's not letting you delete the uSync file in say ~\usync\\umbraco.cms.businesslogic.web.DocumentType\thing\thing\thing.config
and it's stopping umbraco from deleteing by throwing an error ?
- ok, i'll look, i suspect it's my desire to call the folder the type coming back to bite me .
OK, some code options, would appreciate your views.
1. currently usync creates type folders based ont the name i.e umbraco.cms.businesslogic.datatype.DataTypeDefinition
I can change it (i have a version now) so usync will just create the end type e.g /uSync/DataTypeDefinition/....
2. the issue is with nested really with doctypes ?
as the moment i create folder names based on doctype names, and save the file with the same name, it makes navigation simple.
i can (again i have a version that does this) create the folder names based on the ID you then get
\uSync\DocumentType\1066\1067\1070\News Item.config - less nice browser wise but much shorter.
3. this is because the default .net file classes limit to 260 chars (why microsoft? why?)
i can bite the bullet, and Import the true API calls, that can handle 32000 char folder names like this http://stackoverflow.com/questions/2223007/c-sharp-deleting-a-folder-that-has-long-paths just feels ugly.
umbraco.cms.businesslogic.datatype.DataTypeDefinition is definitely too long.
Use these:
DTD, M, MT, T, DT, SS
I dont really like the following. It's hard to find what doctypes you are looking for
\uSync\DocumentType\1066\1067\1070\News Item.config
I think use doctype alias for folder name instead as they will likely be shorter than the doctype names
Also, no need to have a .config file name so long
Call the config file def.config or or dt.config. You already know what it is based on the folder it is in.
So it will be:
uSync/DT/MyDocTypeAlias1/def.config
I quite like seeing the full doctype name though, so maybe it will suffice to reduce umbraco.cms.businesslogic.web.DocumentType to DT, and reduce the config filename to def.config or dt.config
Mind you it also depends on folders that the solution sits in.
Here is my current proj:
D:\_PROJECTS\***********\**********\********\Source\*********.**********.***.*******.****.Web\uSync\umbraco.cms.businesslogic.web.DocumentType\[Core] [Base] Page\[Core] Regionalisation List Page\[Core] Regionalisation List Page.config
Swapping in DT folder and dt.config
D:\_PROJECTS\***********\**********\********\Source\*********.**********.***.*******.****.Web\uSync\DT\[Core] [Base] Page\[Core] Regionalisation List Page\dt.config
Swapping in doctype aliases
D:\_PROJECTS\***********\**********\********\Source\*********.**********.***.*******.****.Web\uSync\DT\CoreBasePage\CoreRegionalisationListPage\dt.config
I'm probibly not going to go that drastic, thinking of keeping the top folder names as the end of the class names so the top level will be.
For consistency, perhaps call all .config files def.config. Because it's the definition.
uSync 1.1 is now avalible - it 'fixes' this problem by writing much smaller filenames.
Nice work!
You're a legend!
Well, long path tool also works good for such problems.
is working on a reply...